瀏覽代碼

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

Fixes win32 build.
Brucey 9 月之前
父節點
當前提交
9b88f21dd2
共有 1 個文件被更改,包括 18 次插入0 次删除
  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) {