Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

fixed sizeof detection

  • Loading branch information...
commit 05c572c4f4c69f06c70d5c5f391dc303f11e8d7e 1 parent 21cc722
authored November 24, 2008

Showing 1 changed file with 9 additions and 2 deletions. Show diff stats Hide diff stats

  1. 11  setup.py
11  setup.py
@@ -161,8 +161,13 @@ def system_has_property(self,name):
161 161
                 return "int"
162 162
         elif name.startswith("SIZEOF_"):
163 163
             t = name[7:].lower().replace("_", " ")
  164
+            if t == "voidp":
  165
+                t = "void*"
164 166
             for i in [1,2,4,8]:
165  
-                if self.test_code("", "static int test_array [%d+1-sizeof(%s)];\ntest_array [0] = 0;" % (i,t)):
  167
+                s = "static int test_array [%d+1-sizeof(%s)*2];\ntest_array [0] = 0;" % (i*2,t)
  168
+                if self.test_code("", s):
  169
+                    print s
  170
+                    print i
166 171
                     return i
167 172
             return None
168 173
         elif name.startswith("USE_FREEETYPE"):
@@ -238,7 +243,9 @@ def load(self):
238 243
 "lib/rfxswf.c", "lib/drawer.c", "lib/MD5.c", "lib/h.263/dct.c", "lib/h.263/h263tables.c",
239 244
 "lib/h.263/swfvideo.c", "lib/action/assembler.c", "lib/action/compile.c",
240 245
 "lib/action/lex.swf4.c", "lib/action/lex.swf5.c", "lib/action/libming.c",
241  
-"lib/action/swf4compiler.tab.c", "lib/action/swf5compiler.tab.c", "lib/action/actioncompiler.c"
  246
+"lib/action/swf4compiler.tab.c", 
  247
+"lib/as3/abc.c", "lib/as3/code.c", "lib/as3/pool.c", "lib/as3/files.c", "lib/as3/opcodes.c", 
  248
+"lib/action/swf5compiler.tab.c", "lib/action/actioncompiler.c"
242 249
 ]
243 250
 libpdf_sources = [
244 251
 "lib/pdf/GFXOutputDev.cc", "lib/pdf/InfoOutputDev.cc", "lib/pdf/BitmapOutputDev.cc",

0 notes on commit 05c572c

Please sign in to comment.
Something went wrong with that request. Please try again.