Author: Armin Rigo <[email protected]>
Branch:
Changeset: r57325:b42b59034fbe
Date: 2012-09-13 17:38 +0000
http://bitbucket.org/pypy/pypy/changeset/b42b59034fbe/
Log: Fix: 'bool_t' is not declared yet in the generated C file
diff --git a/pypy/module/_cffi_backend/misc.py
b/pypy/module/_cffi_backend/misc.py
--- a/pypy/module/_cffi_backend/misc.py
+++ b/pypy/module/_cffi_backend/misc.py
@@ -198,9 +198,7 @@
# hackish, but the most straightforward way to know if a LONGDOUBLE object
# contains the value 0 or not.
eci = ExternalCompilationInfo(post_include_bits=["""
-static bool_t pypy__is_nonnull_longdouble(long double x) {
- return x != 0.0;
-}
+#define pypy__is_nonnull_longdouble(x) ((x) != 0.0)
"""])
is_nonnull_longdouble = rffi.llexternal(
"pypy__is_nonnull_longdouble", [rffi.LONGDOUBLE], lltype.Bool,
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit