summaryrefslogtreecommitdiff
blob: 755cb68586248a700e3a1b16d0202089e7cd8fae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
When built with USE=opengl, the macro GLAPI either doesn't get defined
or gets undefed in some header.  Header <GL/GLwMDrawA.h> seems to expect
it to be defined as 'extern', as defining it as '__attribute__((visibility("default")))'
leads to multiple definition errors.

--- a/RNA3D/RNA3D_GlobalHeader.hxx
+++ b/RNA3D/RNA3D_GlobalHeader.hxx
@@ -44,6 +44,7 @@
 // Undefining it here does the job:
 #undef __GLX_glx_h__
 #include <GL/glx.h>
+#define GLAPI extern
 #endif // OPEN_GL_WAY_TO_INCLUDE == 3
 // ------------------------------