diff --git a/code/Profiler.h b/code/Profiler.h index a458ecffc..543642c74 100644 --- a/code/Profiler.h +++ b/code/Profiler.h @@ -83,7 +83,7 @@ public: return; } - std::chrono::duration elapsedSeconds = std::chrono::system_clock::now() - regions[region]; + auto elapsedSeconds = std::chrono::system_clock::now() - regions[region]; DefaultLogger::get()->debug((format("END `"),region,"`, dt= ", elapsedSeconds.count()," s")); } diff --git a/include/assimp/defs.h b/include/assimp/defs.h index c607a18c4..2c9749357 100644 --- a/include/assimp/defs.h +++ b/include/assimp/defs.h @@ -219,9 +219,9 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * without threading support. The library doesn't utilize * threads then and is itself not threadsafe. */ ////////////////////////////////////////////////////////////////////////// -// #ifndef ASSIMP_BUILD_SINGLETHREADED -// # define ASSIMP_BUILD_SINGLETHREADED -// #endif +#ifndef ASSIMP_BUILD_SINGLETHREADED +# define ASSIMP_BUILD_SINGLETHREADED +#endif #if defined(_DEBUG) || ! defined(NDEBUG) # define ASSIMP_BUILD_DEBUG