[PATCH lib/libXmu 2/2] Remove pointless X_NOT_POSIX

Jon TURNEY jon.turney at dronecode.org.uk
Thu Mar 19 07:18:30 PDT 2015


Both stdlib.h (only included for prototype of atoi()), and limits.h (only
included for PATH_MAX) are in C89, so putting this under X_NOT_POSIX seems
a little excessive.

Signed-off-by: Jon TURNEY <jon.turney at dronecode.org.uk>
---
 src/StrToCurs.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/StrToCurs.c b/src/StrToCurs.c
index 7bb1da1..fc064c6 100644
--- a/src/StrToCurs.c
+++ b/src/StrToCurs.c
@@ -58,8 +58,8 @@ SOFTWARE.
 #include	<X11/Xmu/CurUtil.h>
 #include	<X11/Xmu/CharSet.h>
 
-#ifndef X_NOT_POSIX
 #include <stdlib.h>
+
 #ifdef _POSIX_SOURCE
 #include <limits.h>
 #else
@@ -67,7 +67,7 @@ SOFTWARE.
 #include <limits.h>
 #undef _POSIX_SOURCE
 #endif
-#endif /* X_NOT_POSIX */
+
 #ifndef PATH_MAX
 #ifdef WIN32
 #define PATH_MAX 512
-- 
2.3.2



More information about the xorg-devel mailing list