summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Klose <doko@ubuntu.com>2012-06-26 15:59:32 (GMT)
committerMatthias Klose <doko@ubuntu.com>2012-06-26 15:59:32 (GMT)
commitc02be613cca1efade8650ca38f1ac9e8f5bfae80 (patch)
tree68f5681cbd3d515999d752f7e04997058d119507
parent2a918768f1825d4a1f1e5f11674614c74176aa5d (diff)
downloadcpython-c02be613cca1efade8650ca38f1ac9e8f5bfae80.zip
cpython-c02be613cca1efade8650ca38f1ac9e8f5bfae80.tar.gz
cpython-c02be613cca1efade8650ca38f1ac9e8f5bfae80.tar.bz2
- whitespace-normalize libffi file
-rw-r--r--Modules/_ctypes/libffi/generate-osx-source-and-headers.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Modules/_ctypes/libffi/generate-osx-source-and-headers.py b/Modules/_ctypes/libffi/generate-osx-source-and-headers.py
index b3e6496..64313c1 100644
--- a/Modules/_ctypes/libffi/generate-osx-source-and-headers.py
+++ b/Modules/_ctypes/libffi/generate-osx-source-and-headers.py
@@ -40,7 +40,7 @@ class desktop_platform_32(Platform):
name = 'mac32'
triple = 'i386-apple-darwin10'
sdkroot = desktop_sdk_info['Path']
-
+
prefix = "#if defined(__i386__) && !defined(__x86_64__)\n\n"
suffix = "\n\n#endif"
@@ -50,14 +50,14 @@ class desktop_platform_64(Platform):
name = 'mac'
triple = 'x86_64-apple-darwin10'
sdkroot = desktop_sdk_info['Path']
-
+
prefix = "#if !defined(__i386__) && defined(__x86_64__)\n\n"
suffix = "\n\n#endif"
def move_file(src_dir, dst_dir, filename, file_suffix=None, prefix='', suffix=''):
if not os.path.exists(dst_dir):
os.makedirs(dst_dir)
-
+
out_filename = filename
if file_suffix:
@@ -114,7 +114,7 @@ def build_target(platform):
return subprocess.check_output(['xcrun', '-sdk', platform.sdkroot, '-find', cmd]).strip()
build_dir = 'build_' + platform.name
- if not os.path.exists(build_dir):
+ if not os.path.exists(build_dir):
os.makedirs(build_dir)
env = dict(CC=xcrun_cmd('clang'),
LD=xcrun_cmd('ld'),