diff options
author | Kristian Høgsberg <krh@bitplanet.net> | 2010-01-03 20:59:52 -0500 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2010-01-03 20:59:56 -0500 |
commit | b8326b011d9b16dcc502507a52bd747a4b709399 (patch) | |
tree | f96317eb5fb05b48e34633b20f07febaf5b1196d /src/glut/glx/glutstroke.h | |
parent | 8d62eb45997a199e116661e26217b4d44fb9ba1e (diff) |
Fix glut to work with -fvisibility=hidden
The GLUTAPI #define used in the header file to mark the font structs
visible wasn't kicking in because of the #define glutBitmap9By15 XXX
prior to #include <GL/glut.h>. High quality code... worked around by
copying the GLUTAPI specifier to the invidual C files.
Diffstat (limited to 'src/glut/glx/glutstroke.h')
-rw-r--r-- | src/glut/glx/glutstroke.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/glut/glx/glutstroke.h b/src/glut/glx/glutstroke.h index 74b60314aa..d6eac7aa51 100644 --- a/src/glut/glx/glutstroke.h +++ b/src/glut/glx/glutstroke.h @@ -7,6 +7,10 @@ and is provided without guarantee or warrantee expressed or implied. This program is -not- in the public domain. */ +#define GLUT_NO_LIB_PRAGMA /* Avoid auto library linking when building + the GLUT library itself. */ +#include <GL/glut.h> + #if defined(_MSC_VER) #pragma warning (disable:4244) /* disable bogus conversion warnings */ #pragma warning (disable:4305) /* VC++ 5.0 version of above warning. */ |