diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2016-08-22 13:25:58 +0200 | 
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-08-23 00:05:15 +0200 | 
| commit | f7aa20515c7d5385f9842388008ea04790b0073d (patch) | |
| tree | 570837612adebd2770e28bf9d698a60ec4f9be70 | |
| parent | 7a1c13fae65cb8d19201f231ff190c69367d7968 (diff) | |
cmake: define MINGW_HAS_SECURE_API
| -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> | 
