Przeglądaj źródła

fixed c99 compile

Ron Aaron 5 lat temu
rodzic
commit
f89b5d721c
2 zmienionych plików z 4 dodań i 4 usunięć
  1. 2 2
      nuklear.h
  2. 2 2
      src/nuklear.h

+ 2 - 2
nuklear.h

@@ -5683,8 +5683,8 @@ template<typename T> struct nk_alignof{struct Big {T x; char c;}; enum {
 #define STB_TRUETYPE_IMPLEMENTATION
 #endif
 
-#define STBTT_malloc(x,u) nk_malloc({0},0,x)
-#define STBTT_free(x,u) nk_mfree({0},x)
+#define STBTT_malloc(x,u) nk_malloc((nk_handle){0},0,x)
+#define STBTT_free(x,u) nk_mfree((nk_handle){0},x)
 
 #endif /* NK_NUKLEAR_H_ */
 

+ 2 - 2
src/nuklear.h

@@ -5466,7 +5466,7 @@ template<typename T> struct nk_alignof{struct Big {T x; char c;}; enum {
 #define STB_TRUETYPE_IMPLEMENTATION
 #endif
 
-#define STBTT_malloc(x,u) nk_malloc({0},0,x)
-#define STBTT_free(x,u) nk_mfree({0},x)
+#define STBTT_malloc(x,u) nk_malloc((nk_handle){0},0,x)
+#define STBTT_free(x,u) nk_mfree((nk_handle){0},x)
 
 #endif /* NK_NUKLEAR_H_ */