applied fixes for windows compatibility, needs cleanup
This commit is contained in:
@@ -23,7 +23,7 @@ IF( WIN32 )
|
||||
ADD_DEFINITIONS( -DOGLFT_BUILD )
|
||||
ENDIF( WIN32 )
|
||||
|
||||
ADD_LIBRARY( oglft SHARED ${sources} )
|
||||
ADD_LIBRARY( oglft STATIC ${sources} )
|
||||
TARGET_LINK_LIBRARIES(
|
||||
oglft
|
||||
${FREETYPE2_LIBRARIES}
|
||||
|
||||
@@ -31,6 +31,14 @@
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
// Evil hack to get the callback typedef correct on MSVC9 (see also in
|
||||
// http://www.gamedev.net/community/forums/topic.asp?topic_id=293825
|
||||
#ifdef WIN32
|
||||
#undef GLUTessCallback
|
||||
typedef void (__stdcall *TESSCALLBACK)(void);
|
||||
#define GLUTessCallback TESSCALLBACK
|
||||
#endif
|
||||
|
||||
namespace OGLFT {
|
||||
|
||||
// This is the static instance of the FreeType library wrapper ...
|
||||
|
||||
Reference in New Issue
Block a user