summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibC/bits/wchar_size.h
blob: 6620e2006043adc4727175a8e16279757bd00593 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/*
 * Copyright (c) 2022, Tim Schumacher <timschumi@serenityos.org>
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */

#pragma once

#define WCHAR_MAX __WCHAR_MAX__
#ifdef __WCHAR_MIN__
#    define WCHAR_MIN __WCHAR_MIN__
#else
// Note: This assumes that wchar_t is a signed type.
#    define WCHAR_MIN (-WCHAR_MAX - 1)
#endif