diff --git a/CMakeLists.txt b/CMakeLists.txt index c32cbc304..cdaa46b6d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -99,7 +99,9 @@ INCLUDE_DIRECTORIES( # Platform specific definitions - +IF (CMAKE_SYSTEM MATCHES "AIX.*") + ADD_DEFINITIONS(-DGLU_TESS_CALLBACK_TRIPLEDOT) +ENDIF(CMAKE_SYSTEM MATCHES "AIX.*") IF(WIN32) ADD_DEFINITIONS(-D_SCL_SECURE_NO_WARNINGS) diff --git a/include/osg/GLU b/include/osg/GLU index 745618aae..4cd9fd2a5 100644 --- a/include/osg/GLU +++ b/include/osg/GLU @@ -22,6 +22,10 @@ #include #endif -typedef void (APIENTRY *GLU_TESS_CALLBACK)(); +#if defined(GLU_TESS_CALLBACK_TRIPLEDOT) + typedef void (APIENTRY *GLU_TESS_CALLBACK)(...); +#else + typedef void (APIENTRY *GLU_TESS_CALLBACK)(); +#endif #endif // __osgGLU_h