Browse Source

Undoing the commenting out of lines 709 to 712 in makepanda.py (Windows 7 SDK related defines)

enn0x 15 years ago
parent
commit
7f11bd2d74
1 changed files with 3 additions and 3 deletions
  1. 3 3
      makepanda/makepanda.py

+ 3 - 3
makepanda/makepanda.py

@@ -707,9 +707,9 @@ def CompileCxx(obj,src,opts):
         cmd += "/wd4996 /wd4275 /wd4267 /wd4101 /wd4273 "
         
         # Enables Windows 7 mode if SDK is detected.
-        #platsdk = GetRegistryKey("SOFTWARE\\Microsoft\\Microsoft SDKs\\Windows\\v7.0", "InstallationFolder")
-        #if platsdk and os.path.isdir(platsdk):
-        #    cmd += "/DPANDA_WIN7 /DWINVER=0x601 "
+        platsdk = GetRegistryKey("SOFTWARE\\Microsoft\\Microsoft SDKs\\Windows\\v7.0", "InstallationFolder")
+        if platsdk and os.path.isdir(platsdk):
+            cmd += "/DPANDA_WIN7 /DWINVER=0x601 "
             
         cmd += "/Fo" + obj + " /nologo /c"
         for x in ipath: cmd += " /I" + x