d77a920e949c865a25cba18261a54fa1ec6c87c8~suv--- numpy/core/setup.py.orig 2009-04-05 04:09:20.000000000 -0400
d77a920e949c865a25cba18261a54fa1ec6c87c8~suv+++ numpy/core/setup.py 2009-04-08 19:53:45.000000000 -0400
d77a920e949c865a25cba18261a54fa1ec6c87c8~suv@@ -309,7 +309,14 @@
d77a920e949c865a25cba18261a54fa1ec6c87c8~suv if isinstance(d,str):
d77a920e949c865a25cba18261a54fa1ec6c87c8~suv target_f.write('#define %s\n' % (d))
d77a920e949c865a25cba18261a54fa1ec6c87c8~suv- target_f.write('#define %s %s\n' % (d[0],d[1]))
d77a920e949c865a25cba18261a54fa1ec6c87c8~suv+ if d[0]!='SIZEOF_LONG' and d[0]!='SIZEOF_PY_INTPTR_T':
d77a920e949c865a25cba18261a54fa1ec6c87c8~suv+ target_f.write('#define %s %s\n' % (d[0],d[1]))
d77a920e949c865a25cba18261a54fa1ec6c87c8~suv+ target_f.write('#ifdef __LP64__\n')
d77a920e949c865a25cba18261a54fa1ec6c87c8~suv+ target_f.write('#define %s %s\n' % (d[0],8))
d77a920e949c865a25cba18261a54fa1ec6c87c8~suv+ target_f.write('#define %s %s\n' % (d[0],4))
d77a920e949c865a25cba18261a54fa1ec6c87c8~suv # define inline to our keyword, or nothing
d77a920e949c865a25cba18261a54fa1ec6c87c8~suv target_f.write('#ifndef __cplusplus\n')
d77a920e949c865a25cba18261a54fa1ec6c87c8~suv@@ -393,7 +393,14 @@
d77a920e949c865a25cba18261a54fa1ec6c87c8~suv if isinstance(d,str):
d77a920e949c865a25cba18261a54fa1ec6c87c8~suv target_f.write('#define %s\n' % (d))
d77a920e949c865a25cba18261a54fa1ec6c87c8~suv- target_f.write('#define %s %s\n' % (d[0],d[1]))
d77a920e949c865a25cba18261a54fa1ec6c87c8~suv+ if d[0]!='NPY_SIZEOF_LONG' and d[0]!='NPY_SIZEOF_PY_INTPTR_T':
d77a920e949c865a25cba18261a54fa1ec6c87c8~suv+ target_f.write('#define %s %s\n' % (d[0],d[1]))
d77a920e949c865a25cba18261a54fa1ec6c87c8~suv+ target_f.write('#ifdef __LP64__\n')
d77a920e949c865a25cba18261a54fa1ec6c87c8~suv+ target_f.write('#define %s %s\n' % (d[0],8))
d77a920e949c865a25cba18261a54fa1ec6c87c8~suv+ target_f.write('#define %s %s\n' % (d[0],4))
d77a920e949c865a25cba18261a54fa1ec6c87c8~suv # define NPY_INLINE to recognized keyword
d77a920e949c865a25cba18261a54fa1ec6c87c8~suv target_f.write('#define NPY_INLINE %s\n' % inline)