diff options
Diffstat (limited to 'src/gameCommon.h')
-rw-r--r-- | src/gameCommon.h | 7 |
1 files changed, 7 insertions, 0 deletions
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 <rlgl.h> #include "raygui.h" +//#define PLATFORM_WEB + +#if defined(PLATFORM_WEB) + #include <emscripten/emscripten.h> +#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__) |