summaryrefslogtreecommitdiffstats
path: root/mkspecs/linux-g++-32
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2018-10-08 20:42:42 +0900
committerMichele Calgaro <[email protected]>2018-10-08 20:42:42 +0900
commitc485764cd4d94f272538d7228373fb039f427265 (patch)
tree09553f478c1b2d73ab180db1e34751318c195923 /mkspecs/linux-g++-32
parent230ed5e400ea4276d927570a7781cfcb5c7a534a (diff)
downloadqt3-c485764cd4d94f272538d7228373fb039f427265.tar.gz
qt3-c485764cd4d94f272538d7228373fb039f427265.zip
Replaced _BSD_SOURCE, _SVID_SOURCE, _GNU_SOURCE with _DEFAULT_SOURCE.
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'mkspecs/linux-g++-32')
-rw-r--r--mkspecs/linux-g++-32/qplatformdefs.h25
1 files changed, 2 insertions, 23 deletions
diff --git a/mkspecs/linux-g++-32/qplatformdefs.h b/mkspecs/linux-g++-32/qplatformdefs.h
index e25bc1e..fcf7631 100644
--- a/mkspecs/linux-g++-32/qplatformdefs.h
+++ b/mkspecs/linux-g++-32/qplatformdefs.h
@@ -1,26 +1,5 @@
-#ifndef QPLATFORMDEFS_H
-#define QPLATFORMDEFS_H
-
-// Get Qt defines/settings
-
-#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!
-// <resolv.h> includes <arpa/nameser.h>. <arpa/nameser.h> is using
-// 'u_char' and includes <sys/types.h>. Now the problem is that
-// <sys/types.h> defines 'u_char' only if __USE_BSD is defined.
-// __USE_BSD is defined in <features.h> 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 <unistd.h>