Explorar o código

Merge pull request #11 from bmx-ng/task/win32-build-fix

Fixes win32 build.
Brucey hai 9 meses
pai
achega
9b88f21dd2
Modificáronse 1 ficheiros con 18 adicións e 0 borrados
  1. 18 0
      gui.mod/glue.c

+ 18 - 0
gui.mod/glue.c

@@ -24,7 +24,25 @@
 #define RAYGUI_SUPPORT_ICONS
 #include "raygui.h"
 
+#if !defined(_WIN32)
 #include "brl.mod/blitz.mod/blitz.h"
+#else
+#include "brl.mod/blitz.mod/blitz_debug.h"
+#include "brl.mod/blitz.mod/blitz_array.h"
+
+#if defined(_WIN64)
+ typedef __int64 LONG_PTR; 
+ typedef unsigned __int64 UINT_PTR;
+#else
+ typedef long LONG_PTR;
+ typedef unsigned int UINT_PTR;
+#endif
+typedef UINT_PTR WPARAM;
+typedef LONG_PTR LPARAM;
+
+#include "brl.mod/blitz.mod/blitz_string.h"
+#endif
+
 
 int bmx_raygui_GuiTabBar(Rectangle bounds, BBArray * p, int * active) {