diff options
-rw-r--r-- | cmake/opentrack-platform.cmake | 4 | ||||
-rw-r--r-- | gui/main.cpp | 1 |
2 files changed, 4 insertions, 1 deletions
diff --git a/cmake/opentrack-platform.cmake b/cmake/opentrack-platform.cmake index be7cbfa5..19776323 100644 --- a/cmake/opentrack-platform.cmake +++ b/cmake/opentrack-platform.cmake @@ -65,3 +65,7 @@ if(CMAKE_COMPILER_IS_GNUCXX) set(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS) set(CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS) endif() + +if(MINGW) + add_definitions(-DMINGW_HAS_SECURE_API) +endif() diff --git a/gui/main.cpp b/gui/main.cpp index e7c9c239..2f1158db 100644 --- a/gui/main.cpp +++ b/gui/main.cpp @@ -1,5 +1,4 @@ #ifdef _WIN32 -# define MINGW_HAS_SECURE_API 1 # include "opentrack-library-path.h" # include <stdlib.h> # include <vector> |