From: Marko Kreen Date: Fri, 25 Mar 2011 19:35:19 +0000 (+0200) Subject: AC_USUAL_PORT_CHECK: Use AC_USE_SYSTEM_EXTENSIONS X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=935adf69a6efcca14587c362ca4e6099d606037d;p=libusual.git AC_USUAL_PORT_CHECK: Use AC_USE_SYSTEM_EXTENSIONS This gets rid of _GNU_SOURCE and __EXTENSIONS__ Unfortunately it does not handle _XPG4_2 and WINVER... --- diff --git a/m4/usual.m4 b/m4/usual.m4 index 4bfe7e0..0e7771b 100644 --- a/m4/usual.m4 +++ b/m4/usual.m4 @@ -34,9 +34,10 @@ dnl Set the flags before any feature tests. if test "$PORTNAME" = "win32"; then AC_DEFINE([WIN32_LEAN_AND_MEAN], [1], [Define to request cleaner win32 headers.]) AC_DEFINE([WINVER], [0x0501], [Define to max win32 API version (0x0501=XP).]) -else - AC_DEFINE([_GNU_SOURCE], [1], [Define to get working glibc.]) fi + +dnl Request full API-s +AC_USE_SYSTEM_EXTENSIONS ]) diff --git a/usual/base.h b/usual/base.h index 0db0dd3..1f2ece4 100644 --- a/usual/base.h +++ b/usual/base.h @@ -30,7 +30,6 @@ /* solaris is broken otherwise */ #if defined(__sun) #define _XPG4_2 -#define __EXTENSIONS__ #endif #include