Merge pull request #377 from zbendefy/master

Auto detect C++14 standard version
This commit is contained in:
Syoyo Fujita 2022-09-06 14:01:26 +09:00 committed by GitHub
commit 64452bb5fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -66,6 +66,11 @@
#include <string> #include <string>
#include <vector> #include <vector>
//Auto-detect C++14 standard version
#if !defined(TINYGLTF_USE_CPP14) && defined(__cplusplus) && (__cplusplus >= 201402L)
#define TINYGLTF_USE_CPP14
#endif
#ifndef TINYGLTF_USE_CPP14 #ifndef TINYGLTF_USE_CPP14
#include <functional> #include <functional>
#endif #endif