[Groonga-commit] groonga/groonga [master] don't use _XXX_SOURCE and __USE_GNU.

Back to archive index

null+****@clear***** null+****@clear*****
2011年 1月 6日 (木) 15:02:45 JST


Kouhei Sutou	2011-01-06 06:02:45 +0000 (Thu, 06 Jan 2011)

  New Revision: ce04b14e5f62eedc163cc09d17159c465572ba7a

  Log:
    don't use _XXX_SOURCE and __USE_GNU.

  Modified files:
    lib/groonga_in.h
    lib/proc.c

  Modified: lib/groonga_in.h (+0 -17)
===================================================================
--- lib/groonga_in.h    2011-01-06 05:46:15 +0000 (7d8edce)
+++ lib/groonga_in.h    2011-01-06 06:02:45 +0000 (f917c1c)
@@ -19,27 +19,10 @@
 #ifndef GROONGA_IN_H
 #define GROONGA_IN_H
 
-#ifdef __GNUC__
-#define _GNU_SOURCE
-#endif /* __GNUC__ */
-
-#if defined(__NetBSD__) && !defined(_NETBSD_SOURCE)
-#define _NETBSD_SOURCE 1
-#endif /* defined(__NetBSD__) && !defined(_NETBSD_SOURCE) */
-
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif /* HAVE_CONFIG_H */
 
-#ifdef USE_AIO
-/* #define __USE_XOPEN2K 1 */
-#define _XOPEN_SOURCE 600
-#else
-#if !defined(__APPLE__) && !defined(__FreeBSD__) && !defined(__DragonFly__)
-#define _XOPEN_SOURCE 520
-#endif
-#endif /* USE_AIO */
-
 #ifdef HAVE_STDLIB_H
 #include <stdlib.h>
 #endif /* HAVE_STDLIB_H */

  Modified: lib/proc.c (+0 -1)
===================================================================
--- lib/proc.c    2011-01-06 05:46:15 +0000 (92c7c35)
+++ lib/proc.c    2011-01-06 06:02:45 +0000 (2de470c)
@@ -17,7 +17,6 @@
 
 #include <string.h>
 #include <stdlib.h>
-#define __USE_GNU
 #include <fcntl.h>
 #include <sys/stat.h>
 #include "proc.h"




Groonga-commit メーリングリストの案内
Back to archive index