Author: Armin Rigo <[email protected]>
Branch: 
Changeset: r3051:d5661822dee4
Date: 2017-11-16 12:42 +0100
http://bitbucket.org/cffi/cffi/changeset/d5661822dee4/

Log:    Issue #343 [patch by david naylor]

        Fix test_recompiler for libc++

diff --git a/testing/cffi1/test_recompiler.py b/testing/cffi1/test_recompiler.py
--- a/testing/cffi1/test_recompiler.py
+++ b/testing/cffi1/test_recompiler.py
@@ -2270,7 +2270,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