diff options
author | Brad King <brad.king@kitware.com> | 2021-02-08 16:43:59 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2021-02-08 16:44:16 (GMT) |
commit | f61321bedfceb6a44fbc30669048888d4b8d0eda (patch) | |
tree | 868af3159c5da4e7a7175fa54b82bdf0be088e3d /Source | |
parent | b06a480b5726a44cefb98cf84f0d874c37d1a95c (diff) | |
parent | a8b41e2c68ca38b2b47f20c591042fb69a731494 (diff) | |
download | CMake-f61321bedfceb6a44fbc30669048888d4b8d0eda.zip CMake-f61321bedfceb6a44fbc30669048888d4b8d0eda.tar.gz CMake-f61321bedfceb6a44fbc30669048888d4b8d0eda.tar.bz2 |
Merge topic 'lexer-posix-source'
a8b41e2c68 LexerParser: Do not override existing _POSIX_C_SOURCE definition
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5776
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmStandardLexer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmStandardLexer.h b/Source/cmStandardLexer.h index 2689ba1..1da8c98 100644 --- a/Source/cmStandardLexer.h +++ b/Source/cmStandardLexer.h @@ -7,7 +7,7 @@ // NOLINTNEXTLINE(bugprone-reserved-identifier) # define _XOPEN_SOURCE 600 #endif -#if !defined(_WIN32) && !defined(__sun) +#if !defined(_POSIX_C_SOURCE) && !defined(_WIN32) && !defined(__sun) /* POSIX APIs are needed */ // NOLINTNEXTLINE(bugprone-reserved-identifier) # define _POSIX_C_SOURCE 200809L |