mirror of
git://git.musl-libc.org/musl
synced 2024-12-22 06:40:57 +00:00
030b452b8d
this is actually rather ugly, and would get even uglier if we ever want to support further feature test macros. at some point i may factor the bits headers into separate files for C base, POSIX base, and nonstandard extensions (the only distinctions that seem to matter now) and then the logic for which to include can go in the main header rather than being duplicated for each arch. the downside of this is that it would result in more files having to be opened during compilation, so as long as the ugliness does not grow, i'm inclined to leave it alone for now.
9 lines
253 B
C
9 lines
253 B
C
#if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \
|
|
|| defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
|
|
#define PAGE_SIZE 4096
|
|
#define LONG_BIT 32
|
|
#endif
|
|
|
|
#define LONG_MAX 0x7fffffffL
|
|
#define LLONG_MAX 0x7fffffffffffffffLL
|