IF(NOT USE_MAIN)\r
SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -nostartfiles" CACHE STRING "Flags used by the linker during all build types." FORCE)\r
ENDIF(NOT USE_MAIN)\r
+ IF(UNIX)\r
+ ADD_DEFINITIONS(-D_GNU_SOURCE=1)\r
+ ADD_DEFINITIONS(-D_REENTRANT)\r
+ ENDIF(UNIX)\r
ENDIF(APPLE)\r
\r
CONFIGURE_DEFAULTS()\r
############\r
set(DEMO_NAME fov120)\r
FILE(GLOB HEADERS "*.h*")\r
-SET(SOURCES main.c dl_init.c synth.c play.c)\r
+SET(SOURCES main.c dl_init.c play.c synth.c)\r
IF(APPLE)\r
SET(SOURCES ${SOURCES} SDLMainForMacOSX.h SDLMainForMacOSX.m)\r
ENDIF(APPLE)\r