mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-21 09:02:50 -06:00
added checks to control compilation with emscripten
This commit is contained in:
@@ -16,6 +16,10 @@
|
|||||||
#include <sys/errno.h>
|
#include <sys/errno.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef EMSCRIPTEN
|
||||||
|
#include <errno.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
class PGF_INTERNAL_DECL pgf_error : public std::runtime_error {
|
class PGF_INTERNAL_DECL pgf_error : public std::runtime_error {
|
||||||
public:
|
public:
|
||||||
|
|||||||
@@ -132,6 +132,9 @@ typedef struct {
|
|||||||
#elif defined(_WIN32)
|
#elif defined(_WIN32)
|
||||||
#define LINT_BASE 1000000000
|
#define LINT_BASE 1000000000
|
||||||
#define LINT_BASE_LOG 9
|
#define LINT_BASE_LOG 9
|
||||||
|
#elif defined(EMSCRIPTEN)
|
||||||
|
#define LINT_BASE 10000000000000000000UL
|
||||||
|
#define LINT_BASE_LOG 19
|
||||||
#else
|
#else
|
||||||
#error "Unsupported platform"
|
#error "Unsupported platform"
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user