about summary refs log tree commit diff
path: root/include/limits.h
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-02-14 05:10:10 -0500
committerRich Felker <dalias@aerifal.cx>2011-02-14 05:10:10 -0500
commit80695b1d1e64a026c473a33965e680444e863e34 (patch)
treece661eebee55414fadb70ce322ccff6d63f078fb /include/limits.h
parent7fe308eb9fbebdd39a2e17352b172aa00b381dba (diff)
downloadmusl-80695b1d1e64a026c473a33965e680444e863e34.tar.gz
musl-80695b1d1e64a026c473a33965e680444e863e34.tar.xz
musl-80695b1d1e64a026c473a33965e680444e863e34.zip
begin namespace-cleanup of standard C headers
Diffstat (limited to 'include/limits.h')
-rw-r--r--include/limits.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/limits.h b/include/limits.h
index 61920c7d..6d7dfdbb 100644
--- a/include/limits.h
+++ b/include/limits.h
@@ -13,9 +13,13 @@
 #define UCHAR_MAX 255
 #define CHAR_MIN (-128)
 #define CHAR_MAX 127
-#define SSIZE_MAX LONG_MAX
 
 #define MB_LEN_MAX 4
+
+#if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \
+ || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE)
+
+#define SSIZE_MAX LONG_MAX
 #define TZNAME_MAX 6
 #define TTY_NAME_MAX 20
 #define HOST_NAME_MAX 255
@@ -100,3 +104,5 @@
 #define _XOPEN_PATH_MAX         1024
 
 #endif
+
+#endif