From a5fd03a53dda9faf4d2ef9a6a276e0aa4b5bd323 Mon Sep 17 00:00:00 2001 From: Brad King Date: Mon, 1 May 2023 14:45:29 -0400 Subject: Tests: Teach CompileFeatures to tolerate __STDC_VERSION__ on Intel Classic --- Tests/CompileFeatures/default_dialect.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Tests') 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 -- cgit v1.2.1