diff options
author | Kristian Høgsberg <krh@bitplanet.net> | 2010-01-03 20:59:52 -0500 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2011-07-11 20:05:25 +0100 |
commit | f5e2799aa72815d864301d3da20693db89b62cad (patch) | |
tree | 38e8a13a38e840b9c4b5a5e7d40996e4444ef21c /src/glut/glx/glut_roman.c | |
parent | 5d4c8eada5ca7340199fd379f3bad037c780c427 (diff) | |
download | glut-f5e2799aa72815d864301d3da20693db89b62cad.tar.gz |
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/glut_roman.c')
-rw-r--r-- | src/glut/glx/glut_roman.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/glut/glx/glut_roman.c b/src/glut/glx/glut_roman.c index af2b4ec..95b9f81 100644 --- a/src/glut/glx/glut_roman.c +++ b/src/glut/glx/glut_roman.c @@ -1,7 +1,9 @@ /* GENERATED FILE -- DO NOT MODIFY */ +#define glutStrokeRoman XXX #include "glutstroke.h" +#undef glutStrokeRoman /* char: 33 '!' */ @@ -2447,5 +2449,6 @@ static const StrokeCharRec chars[] = { { 2, char127, 33.3333, 66.6667 }, }; -StrokeFontRec glutStrokeRoman = { "Roman", 128, chars, 119.048, -33.3333 }; +GLUTAPI const StrokeFontRec glutStrokeRoman; +const StrokeFontRec glutStrokeRoman = { "Roman", 128, chars, 119.048, -33.3333 }; |