From a5d9cd1b43c034953ec3cd60331aba6b9591c417 Mon Sep 17 00:00:00 2001 From: nathansmith117 Date: Mon, 6 May 2024 19:08:56 -0600 Subject: Better setup for web build --- src/gameCommon.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/gameCommon.h') 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 #include +//#define PLATFORM_WEB + +#if defined(PLATFORM_WEB) + #include +#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) -- cgit v1.2.3