From d2fbe4db075d8ab3292ca3f1eb154281a4e4ee54 Mon Sep 17 00:00:00 2001 From: Yeongho Kim Date: Fri, 25 Oct 2019 21:33:26 +0900 Subject: [PATCH] Specify MINGW_HAS_SECURE_API=1 --- platform/windows/detect.py | 1 + 1 file changed, 1 insertion(+) diff --git a/platform/windows/detect.py b/platform/windows/detect.py index 67767db7778..a0802ad7ca3 100644 --- a/platform/windows/detect.py +++ b/platform/windows/detect.py @@ -331,6 +331,7 @@ def configure_mingw(env): env.Append(LIBS=['mingw32', 'opengl32', 'dsound', 'ole32', 'd3d9', 'winmm', 'gdi32', 'iphlpapi', 'shlwapi', 'wsock32', 'ws2_32', 'kernel32', 'oleaut32', 'dinput8', 'dxguid', 'ksuser', 'imm32', 'bcrypt', 'avrt', 'uuid']) env.Append(CPPFLAGS=['-DMINGW_ENABLED']) + env.Append(CPPFLAGS=['-DMINGW_HAS_SECURE_API=1']) # resrc env.Append(BUILDERS={'RES': env.Builder(action=build_res_file, suffix='.o', src_suffix='.rc')})