From 59fe65f133f9080e9fc4f26385f49da43037b3ca Mon Sep 17 00:00:00 2001 From: "BADIM-PC\\Vadim" Date: Sat, 23 Dec 2017 19:16:29 +0300 Subject: [PATCH] emscripten compilation fix --- src/console.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/console.c b/src/console.c index c6e0841..c7d6c1b 100644 --- a/src/console.c +++ b/src/console.c @@ -47,6 +47,12 @@ typedef enum JavaScript, } ScriptLang; +#if defined(__WINDOWS__) || defined(__LINUX__) || defined(__MACOSX__) +#define CAN_EXPORT 1 +#endif + +#if defined(CAN_EXPORT) + static const char TicCartSig[] = "TIC.CART"; #define SIG_SIZE (sizeof TicCartSig-1) @@ -57,8 +63,6 @@ typedef struct s32 cartSize; } EmbedHeader; -#if defined(__WINDOWS__) || defined(__LINUX__) || defined(__MACOSX__) -#define CAN_EXPORT 1 #endif #if defined(__WINDOWS__)