Browse Source

Merge branch 'lexer-posix-source' into release-3.18

Merge-request: !5776
Brad King 5 years ago
parent
commit
93e077eda4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/cmStandardLexer.h

+ 1 - 1
Source/cmStandardLexer.h

@@ -7,7 +7,7 @@
 /* Needed for glibc < 2.12 */
 #  define _XOPEN_SOURCE 600
 #endif
-#if !defined(_WIN32) && !defined(__sun)
+#if !defined(_POSIX_C_SOURCE) && !defined(_WIN32) && !defined(__sun)
 /* POSIX APIs are needed */
 #  define _POSIX_C_SOURCE 200809L
 #endif