Author: Armin Rigo <[email protected]>
Branch: 
Changeset: r93054:34aff140932c
Date: 2017-11-16 12:43 +0100
http://bitbucket.org/pypy/pypy/changeset/34aff140932c/

Log:    CFFI Issue #343 [patch by david naylor]

        Fix test_recompiler for libc++

diff --git a/pypy/module/test_lib_pypy/cffi_tests/cffi1/test_recompiler.py 
b/pypy/module/test_lib_pypy/cffi_tests/cffi1/test_recompiler.py
--- a/pypy/module/test_lib_pypy/cffi_tests/cffi1/test_recompiler.py
+++ b/pypy/module/test_lib_pypy/cffi_tests/cffi1/test_recompiler.py
@@ -2271,7 +2271,7 @@
         char32_t foo_4bytes(char32_t);
     """)
     lib = verify(ffi, "test_char16_char32_type" + no_cpp * "_nocpp", """
-    #if !defined(__cplusplus) || __cplusplus < 201103L
+    #if !defined(__cplusplus) || (!defined(_LIBCPP_VERSION) && __cplusplus < 
201103L)
     typedef uint_least16_t char16_t;
     typedef uint_least32_t char32_t;
     #endif
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to