From 34fd1f8caa847d75ff7d5c6e3b8619b494608629 Mon Sep 17 00:00:00 2001 From: Brandon Makin Date: Sun, 12 Aug 2018 22:47:37 -0700 Subject: Import GSoC work to WebRTC GDNative implementation --- SConstruct | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'SConstruct') diff --git a/SConstruct b/SConstruct index e61f94a..ba8e193 100644 --- a/SConstruct +++ b/SConstruct @@ -110,12 +110,12 @@ if target_platform == "linux": elif target_platform == "windows": # Mostly VisualStudio if env["CC"] == "cl": - env.Append(CCFLAGS=["/DWEBRTC_WIN", "/D_WINSOCKAPI_", "/DNOMINMAX", "/DRTC_UNUSED=", "/DNO_RETURN="]) + env.Append(CCFLAGS=["/DWEBRTC_WIN", "/DWIN32_LEAN_AND_MEAN", "/DNOMINMAX", "/DRTC_UNUSED=", "/DNO_RETURN="]) env.Append(LINKFLAGS=[p + env["LIBSUFFIX"] for p in ["secur32", lib_name]]) env.Append(LIBPATH=[lib_path]) # Mostly "gcc" else: - env.Append(CCFLAGS=["-DWEBRTC_WIN", "-D_WINSOCKAPI_", "-DNOMINMAX", "-DRTC_UNUSED=", "-DNO_RETURN="]) + env.Append(CCFLAGS=["-DWINVER=0x0603", "-D_WIN32_WINNT=0x0603", "-DWEBRTC_WIN", "-DWIN32_LEAN_AND_MEAN", "-DNOMINMAX", "-DRTC_UNUSED=", "-DNO_RETURN="]) env.Append(LIBS=["secur32", lib_name]) env.Append(LIBPATH=[lib_path]) -- cgit v1.2.3