[uim-commit] r2981 - branches/r5rs/sigscheme/src
yamaken at freedesktop.org
yamaken at freedesktop.org
Sun Jan 22 14:58:43 PST 2006
Author: yamaken
Date: 2006-01-22 14:58:39 -0800 (Sun, 22 Jan 2006)
New Revision: 2981
Modified:
branches/r5rs/sigscheme/src/alloc.c
branches/r5rs/sigscheme/src/config-nonstd-string.h
Log:
* sigscheme/src/config-nonstd-string.h
- Moved HAVE_STRDUP handling from alloc.c
* sigscheme/src/alloc.c
- Move HAVE_STRDUP handling to config-nonstd-string.h
- Include config-nonstd-string.h
Modified: branches/r5rs/sigscheme/src/alloc.c
===================================================================
--- branches/r5rs/sigscheme/src/alloc.c 2006-01-22 22:49:55 UTC (rev 2980)
+++ branches/r5rs/sigscheme/src/alloc.c 2006-01-22 22:58:39 UTC (rev 2981)
@@ -33,6 +33,7 @@
===========================================================================*/
#include "config.h"
+#include "config-nonstd-string.h"
#if HAVE_POSIX_MEMALIGN
/* For posix_memalign(3). although this value is overridden by _GNU_SOURCE on
@@ -40,11 +41,6 @@
#define _POSIX_C_SOURCE 200112L
#endif
-#if HAVE_STRDUP
-/* Overrides _POSIX_C_SOURCE */
-#define _XOPEN_SOURCE 500
-#endif
-
/*=======================================
System Include
=======================================*/
Modified: branches/r5rs/sigscheme/src/config-nonstd-string.h
===================================================================
--- branches/r5rs/sigscheme/src/config-nonstd-string.h 2006-01-22 22:49:55 UTC (rev 2980)
+++ branches/r5rs/sigscheme/src/config-nonstd-string.h 2006-01-22 22:58:39 UTC (rev 2981)
@@ -36,6 +36,11 @@
#include "config.h"
+#if HAVE_STRDUP
+/* Overrides _POSIX_C_SOURCE */
+#define _XOPEN_SOURCE 500
+#endif
+
#if (HAVE_GLIBC && HAVE_STRCASECMP)
#define _BSD_SOURCE
#endif
More information about the uim-commit
mailing list