From 36a5604a66eaeeb64c682c268682ab812b89bf1d Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 12 Oct 2015 17:05:05 +0200 Subject: _PORTABLE_SOURCES does not disable POSIX extensions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- include/slibc/features.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'include') diff --git a/include/slibc/features.h b/include/slibc/features.h index 0527a60..e6005f9 100644 --- a/include/slibc/features.h +++ b/include/slibc/features.h @@ -68,12 +68,6 @@ # if defined(_BSD_SOURCE) # define __BSD_SOURCE _BSD_SOURCE # endif -# if defined(_POSIX_SOURCE) -# define __POSIX_SOURCE _POSIX_SOURCE -# endif -# if defined(_POSIX_C_SOURCE) -# define __POSIX_C_SOURCE _POSIX_C_SOURCE -# endif # if defined(_XOPEN_SOURCE) # define __XOPEN_SOURCE _XOPEN_SOURCE # endif @@ -81,6 +75,12 @@ # define __ISOC11_SOURCE _ISOC11_SOURCE # endif #endif +#if defined(_POSIX_SOURCE) +# define __POSIX_SOURCE _POSIX_SOURCE +#endif +#if defined(_POSIX_C_SOURCE) +# define __POSIX_C_SOURCE _POSIX_C_SOURCE +#endif -- cgit v1.2.3-70-g09d2