libXmu: Branch 'master'
Jon TURNEY
jturney at kemper.freedesktop.org
Mon Mar 23 07:45:43 PDT 2015
src/StrToCurs.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 24bcdbd17913a1ca39c975113767aa2c556b69cc
Author: Jon TURNEY <jon.turney at dronecode.org.uk>
Date: Sat Sep 13 21:57:17 2014 +0100
Remove pointless X_NOT_POSIX
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>
Reviewed-by: Alan Coopersmith <alan.coopersmith at oracle.com>
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
More information about the xorg-commit
mailing list