From b8326b011d9b16dcc502507a52bd747a4b709399 Mon Sep 17 00:00:00 2001 From: Kristian Høgsberg Date: Sun, 3 Jan 2010 20:59:52 -0500 Subject: 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 . High quality code... worked around by copying the GLUTAPI specifier to the invidual C files. --- src/glut/glx/glutstroke.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/glut/glx/glutstroke.h') 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 + #if defined(_MSC_VER) #pragma warning (disable:4244) /* disable bogus conversion warnings */ #pragma warning (disable:4305) /* VC++ 5.0 version of above warning. */ -- cgit v1.2.3