#include <string.h>
#include <sstream>
#include <iomanip>
-#include <boost/thread/tss.hpp>
+
+#ifndef EMSCRIPTEN
+# include <boost/thread/tss.hpp>
+#endif
// INTERNAL INCLUDES
#include <dali/public-api/common/constants.h>
unsigned int logOptions;
};
+#ifndef EMSCRIPTEN // single threaded
boost::thread_specific_ptr<ThreadLocalLogging> threadLocal;
+#else
+std::auto_ptr<ThreadLocalLogging> threadLocal;
+#endif
/* Forward declarations */
std::string FormatToString(const char *format, ...);
{
return;
}
-
va_list arg;
va_start(arg, format);
std::string message = ArgListToString(format, arg);