X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=arch%2Fx86_64%2Fbits%2Flimits.h;h=465448986bef851864247ac158cba8fe48930e71;hb=8bb0e48889807a1421c15ab0eeaac198df27c7e5;hp=fadaf8492730dd4aed2c56824075675a9a7e0a23;hpb=1e12632591ab98a6ea3af8680716c28282552981;p=musl diff --git a/arch/x86_64/bits/limits.h b/arch/x86_64/bits/limits.h index fadaf849..46544898 100644 --- a/arch/x86_64/bits/limits.h +++ b/arch/x86_64/bits/limits.h @@ -1,3 +1,5 @@ +#if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \ + || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) #define PIPE_BUF 4096 #define PAGESIZE 4096 #define PAGE_SIZE PAGESIZE @@ -10,9 +12,9 @@ #define ARG_MAX 131072 #define IOV_MAX 1024 #define SYMLOOP_MAX 40 - #define WORD_BIT 64 #define LONG_BIT 64 +#endif #define SHRT_MIN (-1-0x7fff) #define SHRT_MAX 0x7fff @@ -20,11 +22,11 @@ #define INT_MIN (-1-0x7fffffff) #define INT_MAX 0x7fffffff -#define UINT_MAX 0xffffffff +#define UINT_MAX 0xffffffffU #define LONG_MIN (-1-0x7fffffffffffffffL) #define LONG_MAX 0x7fffffffffffffffL -#define ULONG_MAX 0xffffffffffffffffL +#define ULONG_MAX 0xffffffffffffffffUL #define LLONG_MIN (-1-0x7fffffffffffffffLL) #define LLONG_MAX 0x7fffffffffffffffLL