We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f965beb commit 475b18cCopy full SHA for 475b18c
include/jsoncons/config/compiler_support.hpp
@@ -393,7 +393,7 @@
393
394
/** noinline for compiler */
395
#ifndef JSONCONS_NOINLINE
396
-# if YYJSON_MSC_VER >= 1400
+# if defined(YYJSON_MSC_VER) && YYJSON_MSC_VER >= 1400
397
# define JSONCONS_NOINLINE __declspec(noinline)
398
# elif JSONCONS_HAS_ATTRIBUTE(noinline) || YYJSON_GCC_VER >= 4
399
# define JSONCONS_NOINLINE __attribute__((noinline))
@@ -404,7 +404,7 @@
404
405
/** align for compiler */
406
#ifndef JSONCONS_ALIGN
407
-# if YYJSON_MSC_VER >= 1300
+# if defined(YYJSON_MSC_VER) && YYJSON_MSC_VER >= 1300
408
# define JSONCONS_ALIGN(x) __declspec(align(x))
409
# elif JSONCONS_HAS_ATTRIBUTE(aligned) || defined(__GNUC__)
410
# define JSONCONS_ALIGN(x) __attribute__((aligned(x)))
0 commit comments