aboutsummaryrefslogtreecommitdiffstats
path: root/src/gameCommon.h
diff options
context:
space:
mode:
authornathansmith117 <thenathansmithsmith@gmail.com>2024-05-07 01:08:56 +0000
committernathansmith117 <thenathansmithsmith@gmail.com>2024-05-07 01:08:56 +0000
commita5d9cd1b43c034953ec3cd60331aba6b9591c417 (patch)
treee48f423ffe5e6f8b1f34b3c29510049fb7ec8469 /src/gameCommon.h
parent32792bb121ea2bb1a96eca821061a3a9b13a6a78 (diff)
downloadPenguinYippies-a5d9cd1b43c034953ec3cd60331aba6b9591c417.tar.gz
PenguinYippies-a5d9cd1b43c034953ec3cd60331aba6b9591c417.tar.bz2
PenguinYippies-a5d9cd1b43c034953ec3cd60331aba6b9591c417.zip
Better setup for web build
Diffstat (limited to 'src/gameCommon.h')
-rw-r--r--src/gameCommon.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gameCommon.h b/src/gameCommon.h
index 1592092..78c17e4 100644
--- a/src/gameCommon.h
+++ b/src/gameCommon.h
@@ -7,10 +7,15 @@
#include <raylib.h>
#include <raymath.h>
+//#define PLATFORM_WEB
+
+#if defined(PLATFORM_WEB)
+ #include <emscripten/emscripten.h>
+#endif
+
#define WINDOW_WIDTH 1280
#define WINDOW_HEIGHT 720
-
// Memory management.
#define YP_MALLOC(size) malloc(size)
#define YP_CALLOC(nmemb, size) calloc(nmemb, size)