diff options
author | nathansmithsmith <thenathansmithsmith@gmail.com> | 2023-12-23 17:04:05 -0700 |
---|---|---|
committer | nathansmithsmith <thenathansmithsmith@gmail.com> | 2023-12-23 17:04:05 -0700 |
commit | f439828dc068974ddc161cc3469ac489a93bbabc (patch) | |
tree | 1d74af0b59744a17ba73716d91196922d3843859 /src/gameCommon.h | |
parent | 2c046ef3dca9e128a801c7a92c3a3a63e01fdd98 (diff) |
Working on the web assembly openglES issue
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__) |