Ticket #15469: patch-sources.diff

File patch-sources.diff, 1.4 KB (added by kintel@…, 16 years ago)
  • ../src/FTVectoriser.cpp

     
    55#define CALLBACK
    66#endif
    77
    8 #ifdef __APPLE_CC__   
    9     typedef GLvoid (*GLUTesselatorFunction)(...);
    10 #elif defined( __mips ) || defined( __linux__ ) || defined( __FreeBSD__ ) || defined( __OpenBSD__ ) || defined( __sun ) || defined (__CYGWIN__)
    11     typedef GLvoid (*GLUTesselatorFunction)();
    12 #elif defined ( WIN32)
    13     typedef GLvoid (CALLBACK *GLUTesselatorFunction)( );
     8#if defined __APPLE_CC__ && __APPLE_CC__ < 5465
     9    typedef GLvoid (*GLUTesselatorFunction) (...);
     10#elif defined WIN32 && !defined __CYGWIN__
     11    typedef GLvoid (CALLBACK *GLUTesselatorFunction) ();
    1412#else
    15     #error "Error - need to define type GLUTesselatorFunction for this platform/compiler"
     13    typedef GLvoid (*GLUTesselatorFunction) ();
    1614#endif
    1715
    18 
    1916void CALLBACK ftglError( GLenum errCode, FTMesh* mesh)
    2017{
    2118    mesh->Error( errCode);
  • ../demo/FTGLDemo.cpp

     
    2121        #define FONT_FILE "/usr/share/fonts/truetype/arial.ttf"
    2222#endif
    2323#ifdef __APPLE_CC__
    24         #define FONT_FILE "/Users/henry/Development/PROJECTS/FTGL/test/font_pack/arial.ttf"
     24        #define FONT_FILE "/Library/Fonts/Arial.ttf"
    2525#endif
    2626#ifdef WIN32
    2727        #define FONT_FILE "C:\\WINNT\\Fonts\\arial.ttf"