diff options
Diffstat (limited to 'include/bits')
-rw-r--r-- | include/bits/limits.h | 5 | ||||
-rw-r--r-- | include/bits/stdio.h | 9 |
2 files changed, 11 insertions, 3 deletions
diff --git a/include/bits/limits.h b/include/bits/limits.h index 48fdd7a1..f5778579 100644 --- a/include/bits/limits.h +++ b/include/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 32 #define LONG_BIT 32 +#endif #define SHRT_MIN (-1-0x7fff) #define SHRT_MAX 0x7fff @@ -29,4 +31,3 @@ #define LLONG_MIN (-1-0x7fffffffffffffffLL) #define LLONG_MAX 0x7fffffffffffffffLL #define ULLONG_MAX 0xffffffffffffffffULL - diff --git a/include/bits/stdio.h b/include/bits/stdio.h index 0afd8b40..b4611f3f 100644 --- a/include/bits/stdio.h +++ b/include/bits/stdio.h @@ -5,6 +5,13 @@ #define TMP_MAX 10000 #define L_cuserid 20 -#define L_ctermid 20 #define L_tmpnam 20 + +#if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \ + || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) +#define L_ctermid 20 +#endif + +#if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) #define P_tmpdir "/tmp" +#endif |