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 a505844 commit 8f3f4eaCopy full SHA for 8f3f4ea
src/gpujpeg_common_internal.h
@@ -44,14 +44,18 @@
44
#include "gpujpeg_util.h"
45
46
// static_assert compat
47
-#if __STDC_VERSION__ < 202311L
48
- #include <assert.h> // static_assert compat macro in C11-C17
+#if defined __cplusplus
+ #if __cplusplus < 201103L
49
+ #error "compiler is not supporting C++11 - perhaps not passed std?"
50
+ #endif
51
#elif __STDC_VERSION__ < 201112L
52
#if defined _MSC_VER && _MSC_VER <= 1900
53
#define static_assert(cond, msg)
54
#else
55
#error "compiler is not supporting C11 - perhaps an error?"
56
#endif
57
+#elif __STDC_VERSION__ < 202311L
58
+ #include <assert.h> // static_assert compat macro in C11-C17
59
60
61
// VS 2015 compat
0 commit comments