Author: Armin Rigo <[email protected]>
Branch:
Changeset: r2733:6ddf5a9d1409
Date: 2016-08-06 20:27 +0200
http://bitbucket.org/cffi/cffi/changeset/6ddf5a9d1409/
Log: Seems that as a #define, this hack breaks if a future header does
"typedef bool _Bool;". With a typedef, though, we get two identical
typedefs, which at least g++ is perfectly happy with
diff --git a/cffi/_cffi_include.h b/cffi/_cffi_include.h
--- a/cffi/_cffi_include.h
+++ b/cffi/_cffi_include.h
@@ -59,7 +59,7 @@
#ifdef __cplusplus
# ifndef _Bool
-# define _Bool bool /* semi-hackish: C++ has no _Bool; bool is builtin */
+ typedef bool _Bool; /* semi-hackish: C++ has no _Bool; bool is builtin */
# endif
#endif
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit