Skip to content

Commit 328f000

Browse files
committed
Try fix MacOS
1 parent 560c33b commit 328f000

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
diff --git a/aui.views/src/AUI/GL/gl.h b/aui.views/src/AUI/GL/gl.h
2+
index 64209c6..062af7b 100644
3+
--- a/aui.views/src/AUI/GL/gl.h
4+
+++ b/aui.views/src/AUI/GL/gl.h
5+
@@ -10,7 +10,9 @@
6+
*/
7+
8+
#pragma once
9+
+#if !AUI_PLATFORM_MACOS
10+
extern "C" {
11+
+#endif
12+
#if AUI_PLATFORM_ANDROID
13+
#include <GLES3/gl3.h>
14+
#include <GLES3/gl31.h>
15+
@@ -27,4 +29,6 @@ extern "C" {
16+
#include <GL/glew.h>
17+
#include <GL/gl.h>
18+
#endif
19+
+#if !AUI_PLATFORM_MACOS
20+
}
21+
+#endif

packages/a/aui/xmake.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ package("aui")
88

99
add_versions("v7.1.2", "a4cf965c50d75e20a319c9c8b231ad9c13c25a06ad303e1eb65d1ff141b1f85c")
1010
add_patches("v7.1.2", "patches/v7.1.2/debundle.diff", "1eb3da88e82503e6a9a893c112b4dd97909341905fe0e28d3fb5a4d2a50075ea")
11+
add_patches("v7.1.2", "patches/v7.1.2/fix-osx-enforce-cpp-template.diff", "eef4147a8b037552887777cd497c190ecc22514bb11fb3a3d6ea433a78cce61b")
1112

1213
add_deps("cmake")
1314
if is_subhost("windows") then

0 commit comments

Comments
 (0)