blueloveTH 3 лет назад
Родитель
Сommit
2fc87f4788
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      src/common.h

+ 4 - 0
src/common.h

@@ -33,6 +33,10 @@
 #define UNREACHABLE() throw std::runtime_error( __FILE__ + std::string(":") + std::to_string(__LINE__) + " UNREACHABLE()!");
 #endif
 
+#ifdef __EMSCRIPTEN__
+#include <emscripten.h>
+#endif
+
 #define PK_VERSION "0.8.0"
 
 typedef int64_t i64;