From 69eeea145b2e936346a0cf7543954202ab13abdd Mon Sep 17 00:00:00 2001 From: zbendefy Date: Mon, 5 Sep 2022 23:54:57 +0200 Subject: [PATCH] Auto detect C++14 standard version --- tiny_gltf.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tiny_gltf.h b/tiny_gltf.h index 9b5fbc2..2752e23 100644 --- a/tiny_gltf.h +++ b/tiny_gltf.h @@ -66,6 +66,11 @@ #include #include +//Auto-detect C++14 standard version +#if !defined(TINYGLTF_USE_CPP14) && defined(__cplusplus) && (__cplusplus >= 201402L) +#define TINYGLTF_USE_CPP14 +#endif + #ifndef TINYGLTF_USE_CPP14 #include #endif