[pypy-commit] cffi default: Issue #343 [patch by david naylor]

arigo pypy.commits at gmail.com
Thu Nov 16 06:43:22 EST 2017


Author: Armin Rigo <arigo at tunes.org>
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


More information about the pypy-commit mailing list