From f439828dc068974ddc161cc3469ac489a93bbabc Mon Sep 17 00:00:00 2001 From: nathansmithsmith Date: Sat, 23 Dec 2023 17:04:05 -0700 Subject: Working on the web assembly openglES issue --- src/gameCommon.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/gameCommon.h') diff --git a/src/gameCommon.h b/src/gameCommon.h index 2c655e3..fb0dfb4 100644 --- a/src/gameCommon.h +++ b/src/gameCommon.h @@ -14,6 +14,12 @@ #include #include "raygui.h" +//#define PLATFORM_WEB + +#if defined(PLATFORM_WEB) + #include +#endif + #ifndef GAME_COMMON_H #define GAME_COMMON_H @@ -33,6 +39,7 @@ typedef struct Entity Entity; #define KF_CALLOC(nmemb, size) calloc(nmemb, size) #define KF_REALLOC(ptr, size) realloc(ptr, size) #define KF_REALLOCARRAY(ptr, nmemb, size) reallocarray(ptr, nmemb, size) +//#define KF_REALLOCARRAY(ptr, nmemb, size) realloc(ptr, nmemb * size) #define KF_FREE(ptr) free(ptr) #define ALLOCATION_ERROR TraceLog(LOG_ERROR, "Allocation error in %s:%d", __FILE__, __LINE__) -- cgit v1.2.3