diff options
author | Brad King <brad.king@kitware.com> | 2018-08-06 17:15:20 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-08-06 17:41:25 (GMT) |
commit | 6eb403d62df1a16d9d4b18775b747414f94a626d (patch) | |
tree | 15087cb730c53f91f1d1f08edaa17c66e87b6604 /share/castxml/detect_vs.c | |
parent | a345f628237a36c9ca55364760e41ff7a936e7da (diff) | |
download | CastXML-6eb403d62df1a16d9d4b18775b747414f94a626d.zip CastXML-6eb403d62df1a16d9d4b18775b747414f94a626d.tar.gz CastXML-6eb403d62df1a16d9d4b18775b747414f94a626d.tar.bz2 |
Detect: Add more VS predefined macros
Use the table at [1] to add a few missing VS 2017 predefined macros to
our detection table.
[1] https://docs.microsoft.com/en-us/cpp/preprocessor/predefined-macros
Diffstat (limited to 'share/castxml/detect_vs.c')
-rw-r--r-- | share/castxml/detect_vs.c | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/share/castxml/detect_vs.c b/share/castxml/detect_vs.c index eca94bc..baa0f79 100644 --- a/share/castxml/detect_vs.c +++ b/share/castxml/detect_vs.c @@ -20,6 +20,9 @@ #define TO_DEFINE(x) "#define " #x " " TO_STRING(x) #pragma message("") +#ifdef __ATOM__ +# pragma message(TO_DEFINE(__ATOM__)) +#endif #ifdef __AVX__ # pragma message(TO_DEFINE(__AVX__)) #endif @@ -32,6 +35,9 @@ #ifdef _CHAR_UNSIGNED # pragma message(TO_DEFINE(_CHAR_UNSIGNED)) #endif +#ifdef _CONTROL_FLOW_GUARD +# pragma message(TO_DEFINE(_CONTROL_FLOW_GUARD)) +#endif #ifdef _CPPRTTI # pragma message(TO_DEFINE(_CPPRTTI)) #endif @@ -47,6 +53,12 @@ #ifdef _INTEGRAL_MAX_BITS # pragma message(TO_DEFINE(_INTEGRAL_MAX_BITS)) #endif +#ifdef _ISO_VOLATILE +# pragma message(TO_DEFINE(_ISO_VOLATILE)) +#endif +#ifdef _KERNEL_MODE +# pragma message(TO_DEFINE(_KERNEL_MODE)) +#endif #ifdef _MANAGED # pragma message(TO_DEFINE(_MANAGED)) #endif @@ -77,6 +89,12 @@ #ifdef _M_ARM # pragma message(TO_DEFINE(_M_ARM)) #endif +#ifdef _M_ARM64 +# pragma message(TO_DEFINE(_M_ARM64)) +#endif +#ifdef _M_ARM_ARMV7VE +# pragma message(TO_DEFINE(_M_ARM_ARMV7VE)) +#endif #ifdef _M_ARM_FP # pragma message(TO_DEFINE(_M_ARM_FP)) #endif @@ -89,6 +107,18 @@ #ifdef _M_CEE_SAFE # pragma message(TO_DEFINE(_M_CEE_SAFE)) #endif +#ifdef _M_FP_EXCEPT +# pragma message(TO_DEFINE(_M_FP_EXCEPT)) +#endif +#ifdef _M_FP_FAST +# pragma message(TO_DEFINE(_M_FP_FAST)) +#endif +#ifdef _M_FP_PRECISE +# pragma message(TO_DEFINE(_M_FP_PRECISE)) +#endif +#ifdef _M_FP_STRICT +# pragma message(TO_DEFINE(_M_FP_STRICT)) +#endif #ifdef _M_IA64 # pragma message(TO_DEFINE(_M_IA64)) #endif @@ -116,6 +146,9 @@ #ifdef _OPENMP # pragma message(TO_DEFINE(_OPENMP)) #endif +#ifdef _PREFAST_ +# pragma message(TO_DEFINE(_PREFAST_)) +#endif #ifdef _VC_NODEFAULTLIB # pragma message(TO_DEFINE(_VC_NODEFAULTLIB)) #endif @@ -128,6 +161,9 @@ #ifdef _WIN64 # pragma message(TO_DEFINE(_WIN64)) #endif +#ifdef _WINRT_DLL +# pragma message(TO_DEFINE(_WINRT_DLL)) +#endif #ifdef _Wp64 # pragma message(TO_DEFINE(_Wp64)) #endif @@ -137,3 +173,9 @@ #ifdef __MSVC_RUNTIME_CHECKS # pragma message(TO_DEFINE(__MSVC_RUNTIME_CHECKS)) #endif +#ifdef __STDC__ +# pragma message(TO_DEFINE(__STDC__)) +#endif +#ifdef __STDC_HOSTED__ +# pragma message(TO_DEFINE(__STDC_HOSTED__)) +#endif |