mirror of
https://github.com/simdjson/simdjson
synced 2026-06-08 17:27:07 +00:00
C++ language version detection (#418)
* added visual_studio folder where visual_studio cmake generated, local artefacts are * C++ version detection
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
visual_studio
|
||||
|
||||
/benchbranch/
|
||||
/submodules/
|
||||
|
||||
|
||||
@@ -1,6 +1,22 @@
|
||||
#ifndef SIMDJSON_SIMDJSON_H
|
||||
#define SIMDJSON_SIMDJSON_H
|
||||
|
||||
#ifndef __cplusplus
|
||||
#error SIMDBJSON requires 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 SIMDBJSON requires the standard C++17 compiler
|
||||
#endif
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace simdjson {
|
||||
|
||||
Reference in New Issue
Block a user