package An official xmake package repository
https://xrepo.xmake.io/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
1.3 KiB
31 lines
1.3 KiB
diff --git a/src/fg_gl2.h b/src/fg_gl2.h |
|
index ab8ba5c..a1a52da 100644 |
|
--- a/src/fg_gl2.h |
|
+++ b/src/fg_gl2.h |
|
@@ -67,12 +67,18 @@ |
|
typedef void (APIENTRY *FGH_PFNGLDISABLEVERTEXATTRIBARRAYPROC) (GLuint); |
|
typedef void (APIENTRY *FGH_PFNGLVERTEXATTRIBPOINTERPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid *pointer); |
|
|
|
-FGH_PFNGLGENBUFFERSPROC fghGenBuffers; |
|
-FGH_PFNGLDELETEBUFFERSPROC fghDeleteBuffers; |
|
-FGH_PFNGLBINDBUFFERPROC fghBindBuffer; |
|
-FGH_PFNGLBUFFERDATAPROC fghBufferData; |
|
-FGH_PFNGLENABLEVERTEXATTRIBARRAYPROC fghEnableVertexAttribArray; |
|
-FGH_PFNGLDISABLEVERTEXATTRIBARRAYPROC fghDisableVertexAttribArray; |
|
-FGH_PFNGLVERTEXATTRIBPOINTERPROC fghVertexAttribPointer; |
|
+#if __GNUC__ > 9 |
|
+#define FG_ATTRIBUTE_COMMON __attribute__((__common__)) |
|
+#else |
|
+#define FG_ATTRIBUTE_COMMON |
|
+#endif |
|
+ |
|
+FGH_PFNGLGENBUFFERSPROC FG_ATTRIBUTE_COMMON fghGenBuffers; |
|
+FGH_PFNGLDELETEBUFFERSPROC FG_ATTRIBUTE_COMMON fghDeleteBuffers; |
|
+FGH_PFNGLBINDBUFFERPROC FG_ATTRIBUTE_COMMON fghBindBuffer; |
|
+FGH_PFNGLBUFFERDATAPROC FG_ATTRIBUTE_COMMON fghBufferData; |
|
+FGH_PFNGLENABLEVERTEXATTRIBARRAYPROC FG_ATTRIBUTE_COMMON fghEnableVertexAttribArray; |
|
+FGH_PFNGLDISABLEVERTEXATTRIBARRAYPROC FG_ATTRIBUTE_COMMON fghDisableVertexAttribArray; |
|
+FGH_PFNGLVERTEXATTRIBPOINTERPROC FG_ATTRIBUTE_COMMON fghVertexAttribPointer; |
|
|
|
# endif |
|
|