diff options
author | Todd Fiala <todd.fiala@gmail.com> | 2016-04-08 18:58:07 +0000 |
---|---|---|
committer | Todd Fiala <todd.fiala@gmail.com> | 2016-04-08 18:58:07 +0000 |
commit | c4a2134f2639127675463e89271eaa8ac3a2d222 (patch) | |
tree | 0453a152ecd5c2c4271d1fc76511ba4984534a2e /lldb/scripts/Python | |
parent | 69341e6abca92f7f118ee7bd99be0cdfc649386f (diff) | |
download | bcm5719-llvm-c4a2134f2639127675463e89271eaa8ac3a2d222.tar.gz bcm5719-llvm-c4a2134f2639127675463e89271eaa8ac3a2d222.zip |
Fix #ifdef __APPLE__ code is the swig Python bindings
This code was getting evaluated unintentionally at binding
generation time instead of binding file compilation time.
Addresses:
https://bugs.swift.org/browse/SR-1192
llvm-svn: 265829
Diffstat (limited to 'lldb/scripts/Python')
-rw-r--r-- | lldb/scripts/Python/python-typemaps.swig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/scripts/Python/python-typemaps.swig b/lldb/scripts/Python/python-typemaps.swig index 02972ce0925..df16a6d27b3 100644 --- a/lldb/scripts/Python/python-typemaps.swig +++ b/lldb/scripts/Python/python-typemaps.swig @@ -534,7 +534,7 @@ %typemap(out) FILE * { char mode[4] = {0}; -#ifdef __APPLE__ +%#ifdef __APPLE__ int i = 0; if ($1) { @@ -547,7 +547,7 @@ else // if (flags & __SRW) mode[i++] = 'a'; } -#endif +%#endif using namespace lldb_private; File file($1, false); PythonFile py_file(file, mode); |