hwc: Do not rename main on OSX
authorkoda
Mon, 16 Nov 2015 16:01:57 +0100
changeset 11405 fac466eb0c4d
parent 11404 ed6bb8c066b3
child 11406 7012234df6c4
hwc: Do not rename main on OSX
project_files/hwc/CMakeLists.txt
project_files/hwc/rtl/fpcrtl.h
--- a/project_files/hwc/CMakeLists.txt	Mon Nov 16 15:22:05 2015 +0100
+++ b/project_files/hwc/CMakeLists.txt	Mon Nov 16 16:01:57 2015 +0100
@@ -94,9 +94,5 @@
                                 m
                                 #TODO: add other libraries
                             )
-if(APPLE)
-    target_link_libraries(hwengine SDLmain)
-endif()
-
 install(PROGRAMS "${EXECUTABLE_OUTPUT_PATH}/hwengine${CMAKE_EXECUTABLE_SUFFIX}" DESTINATION ${target_binary_install_dir})
 
--- a/project_files/hwc/rtl/fpcrtl.h	Mon Nov 16 15:22:05 2015 +0100
+++ b/project_files/hwc/rtl/fpcrtl.h	Mon Nov 16 16:01:57 2015 +0100
@@ -14,9 +14,6 @@
 #include "pmath.h"
 
 #ifndef EMSCRIPTEN
-#if __APPLE__
-#define main SDL_main
-#endif
 #include "GL/glew.h"
 #endif