ref: fa433522dcff818d71ced0e30279a541e0024f75
parent: c40dabd91310f12d3e13687e890bf4274c7ddcfa
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Tue Apr 13 11:41:16 EDT 2021
sdl2: define SDL_zero and SDL_realloc
--- a/include/npe/SDL2/SDL.h
+++ b/include/npe/SDL2/SDL.h
@@ -43,6 +43,9 @@
#define SDLCALL
+#define SDL_zero(x) do{ memset(&(x), 0, sizeof(x)); }while(0)
+#define SDL_realloc(p, sz) realloc(p, sz)
+
void SDL_StopTextInput(void);
SDL_bool SDL_HasSSE(void);
SDL_bool SDL_HasSSE2(void);