From c485764cd4d94f272538d7228373fb039f427265 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Mon, 8 Oct 2018 20:42:42 +0900 Subject: Replaced _BSD_SOURCE, _SVID_SOURCE, _GNU_SOURCE with _DEFAULT_SOURCE. Signed-off-by: Michele Calgaro --- mkspecs/linux-pgcc/qplatformdefs.h | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) (limited to 'mkspecs/linux-pgcc') diff --git a/mkspecs/linux-pgcc/qplatformdefs.h b/mkspecs/linux-pgcc/qplatformdefs.h index e25bc1e..2bf855b 100644 --- a/mkspecs/linux-pgcc/qplatformdefs.h +++ b/mkspecs/linux-pgcc/qplatformdefs.h @@ -5,22 +5,8 @@ #include "qglobal.h" -// Set any POSIX/XOPEN defines at the top of this file to turn on specific APIs - -// DNS system header files are a mess! -// includes . is using -// 'u_char' and includes . Now the problem is that -// defines 'u_char' only if __USE_BSD is defined. -// __USE_BSD is defined in if _BSD_SOURCE is defined. -#ifndef _BSD_SOURCE -# define _BSD_SOURCE -#endif - -// 1) need to reset default environment if _BSD_SOURCE is defined -// 2) need to specify POSIX thread interfaces explicitly in glibc 2.0 -// 3) it seems older glibc need this to include the X/Open stuff -#ifndef _GNU_SOURCE -# define _GNU_SOURCE +#ifndef _DEFAULT_SOURCE +# define _DEFAULT_SOURCE #endif #include -- cgit v1.2.1