From 96304a52d1d3b332e6d7b4bbb137747e94d86d4b Mon Sep 17 00:00:00 2001 From: Krasimir Angelov Date: Mon, 4 Jul 2022 14:26:04 +0200 Subject: [PATCH] added checks to control compilation with emscripten --- src/runtime/c/pgf/data.h | 4 ++++ src/runtime/c/pgf/pgf.h | 3 +++ 2 files changed, 7 insertions(+) diff --git a/src/runtime/c/pgf/data.h b/src/runtime/c/pgf/data.h index ac066e4c1..b3ad9846f 100644 --- a/src/runtime/c/pgf/data.h +++ b/src/runtime/c/pgf/data.h @@ -16,6 +16,10 @@ #include #endif +#ifdef EMSCRIPTEN +#include +#include +#endif class PGF_INTERNAL_DECL pgf_error : public std::runtime_error { public: diff --git a/src/runtime/c/pgf/pgf.h b/src/runtime/c/pgf/pgf.h index 9dac796bb..a60e22f27 100644 --- a/src/runtime/c/pgf/pgf.h +++ b/src/runtime/c/pgf/pgf.h @@ -132,6 +132,9 @@ typedef struct { #elif defined(_WIN32) #define LINT_BASE 1000000000 #define LINT_BASE_LOG 9 +#elif defined(EMSCRIPTEN) +#define LINT_BASE 10000000000000000000UL +#define LINT_BASE_LOG 19 #else #error "Unsupported platform" #endif