summaryrefslogtreecommitdiff
path: root/Tests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-05-01 14:45:29 -0400
committerBrad King <brad.king@kitware.com>2023-05-01 15:51:21 -0400
commita5fd03a53dda9faf4d2ef9a6a276e0aa4b5bd323 (patch)
treefecc64c997c9fa3ce0166f232935244d15c533ff /Tests
parent1b7649604e5bd4ed870df631aa8a3468ad1d553b (diff)
downloadcmake-a5fd03a53dda9faf4d2ef9a6a276e0aa4b5bd323.tar.gz
Tests: Teach CompileFeatures to tolerate __STDC_VERSION__ on Intel Classic
Diffstat (limited to 'Tests')
-rw-r--r--Tests/CompileFeatures/default_dialect.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Tests/CompileFeatures/default_dialect.c b/Tests/CompileFeatures/default_dialect.c
index b990e53258..c696c83f3e 100644
--- a/Tests/CompileFeatures/default_dialect.c
+++ b/Tests/CompileFeatures/default_dialect.c
@@ -20,7 +20,8 @@
# error Buildsystem error
# endif
# if defined(__STDC_VERSION__) && \
- !(defined(__SUNPRO_C) && __STDC_VERSION__ == 199409L)
+ !(__STDC_VERSION__ == 199409L && \
+ (defined(__INTEL_COMPILER) || defined(__SUNPRO_C)))
# error Unexpected __STDC_VERSION__ definition
# endif
#endif