changeset 3466:b61e74e68d41

fix ILogger in non threaded environment (Emscripten)
author Alain Mazy <alain@mazy.be>
date Thu, 11 Jul 2019 10:23:15 +0200
parents 3f1f9039861b
children 324f6b966c7a
files Resources/Samples/CppHelpers/Logging/ILogger.h
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Resources/Samples/CppHelpers/Logging/ILogger.h	Wed Jul 10 08:44:10 2019 +0200
+++ b/Resources/Samples/CppHelpers/Logging/ILogger.h	Thu Jul 11 10:23:15 2019 +0200
@@ -36,7 +36,11 @@
   // check LogContext class for more details
   class BaseLogger : public ILogger
   {
+#if defined(BOOST_ENABLE_THREADS)
     boost::thread_specific_ptr<std::vector<std::string>> contexts_;
+#else
+    boost::thread_specific_ptr<std::vector<std::string>> contexts_;
+#endif
     bool logContextChanges_;
 
   public: