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