summaryrefslogtreecommitdiffstats
path: root/test/cc-msvc.c
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-02-04 16:08:31 (GMT)
committerBrad King <brad.king@kitware.com>2015-02-04 16:08:31 (GMT)
commit1cf66488ca969eefcd4299e51122445474285238 (patch)
tree2b36998e949356a663a83507e74e9d08c5eea67e /test/cc-msvc.c
parent8d8aacd65af229da0cadf81911ffa3ef77db7b57 (diff)
downloadCastXML-1cf66488ca969eefcd4299e51122445474285238.zip
CastXML-1cf66488ca969eefcd4299e51122445474285238.tar.gz
CastXML-1cf66488ca969eefcd4299e51122445474285238.tar.bz2
Detect: Drop detected predefined macros starting in '__has'
These macros are builtin to Clang so we should not try to use any such definitions detected from the compiler.
Diffstat (limited to 'test/cc-msvc.c')
-rw-r--r--test/cc-msvc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/cc-msvc.c b/test/cc-msvc.c
index 8ddbac1..8f439b4 100644
--- a/test/cc-msvc.c
+++ b/test/cc-msvc.c
@@ -5,6 +5,10 @@ int main(void)
fprintf(stdout,
"\n"
"#define __cc_msvc__ 1\n"
+ "#define __has_include(x) x\n"
+ "#define __has_include_next(x) x\n"
+ "#define __cc_msvc_minor__ 1\n"
+ "#define __has_last(x) x"
);
return 0;
}