mirror of
https://github.com/simdjson/simdjson
synced 2026-06-08 17:27:07 +00:00
99667f7c55
- Allows everyone to #include the same way, singleheader or not.
21 lines
489 B
C
21 lines
489 B
C
#ifndef SIMDJSON_COMPILER_CHECK_H
|
|
#define SIMDJSON_COMPILER_CHECK_H
|
|
|
|
#ifndef __cplusplus
|
|
#error simdjson requires a C++ compiler
|
|
#endif
|
|
|
|
#ifndef SIMDJSON_CPLUSPLUS
|
|
#if defined(_MSVC_LANG) && !defined(__clang__)
|
|
#define SIMDJSON_CPLUSPLUS (_MSC_VER == 1900 ? 201103L : _MSVC_LANG)
|
|
#else
|
|
#define SIMDJSON_CPLUSPLUS __cplusplus
|
|
#endif
|
|
#endif
|
|
|
|
#if (SIMDJSON_CPLUSPLUS < 201703L)
|
|
#error simdjson requires a compiler compliant with the C++17 standard
|
|
#endif
|
|
|
|
#endif // SIMDJSON_COMPILER_CHECK_H
|