Browse Source

fixes 18539 compile under windows

Avril 7 năm trước cách đây
mục cha
commit
e6fd214131
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      modules/openssl/SCsub

+ 1 - 1
modules/openssl/SCsub

@@ -671,7 +671,7 @@ if (env['builtin_openssl'] != 'no'):
     # Workaround for compilation error with GCC/Clang when -Werror is too greedy (GH-4517)
     # Workaround for compilation error with GCC/Clang when -Werror is too greedy (GH-4517)
     import os
     import os
     import methods
     import methods
-    if not (os.name == "nt" and os.getenv("VSINSTALLDIR") != None):  # not Windows and not MSVC
+    if not (os.name == "nt" and os.getenv("VCINSTALLDIR") != None):  # not Windows and not MSVC
         env_openssl.Append(CFLAGS=["-Wno-error=implicit-function-declaration"])
         env_openssl.Append(CFLAGS=["-Wno-error=implicit-function-declaration"])