python-cffi: fix clang build
This commit is contained in:
13
pkgs/development/python-modules/cffi/clang.patch
Normal file
13
pkgs/development/python-modules/cffi/clang.patch
Normal file
@@ -0,0 +1,13 @@
|
||||
diff --git a/testing/cffi1/test_recompiler.py b/testing/cffi1/test_recompiler.py
|
||||
index a3277b0..0d6e2c3 100644
|
||||
--- a/testing/cffi1/test_recompiler.py
|
||||
+++ b/testing/cffi1/test_recompiler.py
|
||||
@@ -2270,7 +2270,7 @@ def test_char16_char32_type(no_cpp=False):
|
||||
char32_t foo_4bytes(char32_t);
|
||||
""")
|
||||
lib = verify(ffi, "test_char16_char32_type" + no_cpp * "_nocpp", """
|
||||
- #if !defined(__cplusplus) || __cplusplus < 201103L
|
||||
+ #if !defined(__cplusplus)
|
||||
typedef uint_least16_t char16_t;
|
||||
typedef uint_least32_t char32_t;
|
||||
#endif
|
||||
Reference in New Issue
Block a user