diff options
-rw-r--r-- | gen/bits/intconf.h | 10 | ||||
-rw-r--r-- | include/bits/types.h | 9 |
2 files changed, 10 insertions, 9 deletions
diff --git a/gen/bits/intconf.h b/gen/bits/intconf.h index f9ff861..128b0ba 100644 --- a/gen/bits/intconf.h +++ b/gen/bits/intconf.h @@ -27,15 +27,15 @@ #define __MAX_TO_MIN(max) (-(max) - 1) #if //(bin/gen/bits/intconf char-signed) # define __CHAR_SIGNED -# define __CHAR_SIGNESS signed -#endif -# define __CHAR_SIGNESS unsigned +# define __CHAR_SIGNNESS signed +#else +# define __CHAR_SIGNNESS unsigned #endif #if //(bin/gen/bits/intconf wchar-signed) # define __WCHAR_SIGNED -# define __WCHAR_SIGNESS signed +# define __WCHAR_SIGNNESS signed #else -# define __WCHAR_SIGNESS unsigned +# define __WCHAR_SIGNNESS unsigned #endif #define __CHAR_BIT //(bin/gen/bits/intconf | grep ^CHAR_BIT | sed "s/^[^ ]* //") #define __SHORT_BIT //(bin/gen/bits/intconf | grep ^SHORT_BIT | sed "s/^[^ ]* //") diff --git a/include/bits/types.h b/include/bits/types.h index f2318c1..b7d0bd6 100644 --- a/include/bits/types.h +++ b/include/bits/types.h @@ -53,6 +53,7 @@ # define __LIMITED_PTR_INT int # else # define __LIMITED_PTR_INT long int +# endif #endif @@ -95,13 +96,13 @@ typedef unsigned __LIMITED_PTR_INT uptrdiff_t; # if defined(__NEED_wchar_t) && !defined(__DEFINED_wchar_t) # define __DEFINED_wchar_t # if __WCHAR_BIT == 8 -typedef __WCHAR_SIGNESS __INT8 wchar_t +typedef __WCHAR_SIGNNESS __INT8 wchar_t # elif __WCHAR_BIT == 16 -typedef __WCHAR_SIGNESS __INT16 wchar_t +typedef __WCHAR_SIGNNESS __INT16 wchar_t # elif __WCHAR_BIT == 32 -typedef __WCHAR_SIGNESS __INT32 wchar_t +typedef __WCHAR_SIGNNESS __INT32 wchar_t # elif __WCHAR_BIT == 64 -typedef __WCHAR_SIGNESS __INT64 wchar_t +typedef __WCHAR_SIGNNESS __INT64 wchar_t # endif __warning("'wchar_t' is not guaranteed to be defined as expected, use 'int32_t'."); # endif |