1
0
Fork 0
mirror of https://gitlab.com/sortix/sortix.git synced 2023-02-13 20:55:38 -05:00

Provide the full <stdint.h> in all system components.

This commit is contained in:
Jonas 'Sortie' Termansen 2013-09-23 00:22:54 +02:00
parent 8044afc7e8
commit 52f67b436d
2 changed files with 10 additions and 4 deletions

View file

@ -115,6 +115,14 @@
#define __HAS_RESTRICT 2
#endif
/* Provide the full <stdint.h> in all system components. */
#if __is_sortix_system_component
#undef __STDC_CONSTANT_MACROS
#undef __STDC_LIMIT_MACROS
#define __STDC_CONSTANT_MACROS
#define __STDC_LIMIT_MACROS
#endif
/* TODO: Improve these declarations, perhaps like they are in glibc. */
/*#define __POSIX_NO_OBSOLETE*/

View file

@ -31,8 +31,7 @@
__BEGIN_DECLS
/* Only define these constant macros in C++ if requested. */
#if !defined(__cplusplus) || defined(__STDC_CONSTANT_MACROS) || \
defined(__is_sortix_libc) || defined(__is_sortix_kernel) /* TODO: HACK! */
#if !defined(__cplusplus) || defined(__STDC_CONSTANT_MACROS)
#define INT8_C(c) __INT8_C(c)
#define INT16_C(c) __INT16_C(c)
@ -50,8 +49,7 @@ __BEGIN_DECLS
#endif
/* Only define these limit macros in C++ if requested. */
#if !defined(__cplusplus) || defined(__STDC_LIMIT_MACROS) || \
defined(__is_sortix_libc) || defined(__is_sortix_kernel) /* TODO: HACK! */
#if !defined(__cplusplus) || defined(__STDC_LIMIT_MACROS)
#define INT8_MIN __INT8_MIN
#define INT16_MIN __INT16_MIN