1. pygame
  2. pygame
  3. pygame

Source

pygame / setup.py

Diff from to

File setup.py

  • Ignore whitespace
 
 if __name__ == "__main__":
 
-    warn_flags = ["-W", "-Wall", "-Wpointer-arith", "-Wcast-qual",
-                  "-Winline", "-Wcast-align", "-Wconversion",
-                  "-Wstrict-prototypes", "-Wmissing-prototypes",
-                  "-Wmissing-declarations", "-Wnested-externs",
-                  "-Wshadow", "-Wredundant-decls"
-                  ]
-    compile_args = [ "-std=c99", "-g"]
-    compile_args += warn_flags
+    compile_args = []
+    if sys.platform == "win32":
+        pass
+    else:
+        warn_flags = ["-W", "-Wall", "-Wpointer-arith", "-Wcast-qual",
+                      "-Winline", "-Wcast-align", "-Wconversion",
+                      "-Wstrict-prototypes", "-Wmissing-prototypes",
+                      "-Wmissing-declarations", "-Wnested-externs",
+                      "-Wshadow", "-Wredundant-decls"
+                     ]
+        compile_args = [ "-std=c99", "-g"]
+        compile_args += warn_flags
 
     extphysics = Extension ("physics", sources = get_c_files (),
                             include_dirs = [ "include" ],