Parcourir la source

Fix chipmunk2d

Jérôme Leclercq il y a 1 an
Parent
commit
6bab04cf98
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      packages/c/chipmunk2d/xmake.lua

+ 2 - 2
packages/c/chipmunk2d/xmake.lua

@@ -58,12 +58,12 @@ package("chipmunk2d")
         if package:config("precision") == "double" then
         if package:config("precision") == "double" then
             opt.cxflags = {"-DCP_USE_DOUBLES=1"}
             opt.cxflags = {"-DCP_USE_DOUBLES=1"}
             if package:is_plat("macosx", "iphoneos") then
             if package:is_plat("macosx", "iphoneos") then
-                table.insert(opt.cxflags, "CP_USE_CGTYPES=1")
+                table.insert(opt.cxflags, "-DCP_USE_CGTYPES=1")
             end
             end
         elseif package:config("precision") == "single" then
         elseif package:config("precision") == "single" then
             opt.cxflags = {"-DCP_USE_DOUBLES=0"}
             opt.cxflags = {"-DCP_USE_DOUBLES=0"}
             if package:is_plat("macosx", "iphoneos") then
             if package:is_plat("macosx", "iphoneos") then
-                table.insert(opt.cxflags, "CP_USE_CGTYPES=0")
+                table.insert(opt.cxflags, "-DCP_USE_CGTYPES=0")
             end
             end
         end
         end
         import("package.tools.cmake").install(package, configs, opt)
         import("package.tools.cmake").install(package, configs, opt)