Browse Source

Update common.h

blueloveTH 3 years ago
parent
commit
2fc87f4788
1 changed files with 4 additions and 0 deletions
  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()!");
 #define UNREACHABLE() throw std::runtime_error( __FILE__ + std::string(":") + std::to_string(__LINE__) + " UNREACHABLE()!");
 #endif
 #endif
 
 
+#ifdef __EMSCRIPTEN__
+#include <emscripten.h>
+#endif
+
 #define PK_VERSION "0.8.0"
 #define PK_VERSION "0.8.0"
 
 
 typedef int64_t i64;
 typedef int64_t i64;