Author: Armin Rigo <[email protected]>
Branch: stmgc-c7
Changeset: r74580:dd13b4ea897b
Date: 2014-11-19 00:19 +0100
http://bitbucket.org/pypy/pypy/changeset/dd13b4ea897b/

Log:    Fix (and reduce the diff to default)

diff --git a/rpython/translator/c/src/g_prerequisite.h 
b/rpython/translator/c/src/g_prerequisite.h
--- a/rpython/translator/c/src/g_prerequisite.h
+++ b/rpython/translator/c/src/g_prerequisite.h
@@ -12,11 +12,13 @@
 #include <stddef.h>
 
 
-#ifdef __GNUC__
+#ifdef __GNUC__       /* other platforms too, probably */
+typedef _Bool bool_t;
 # define RPY_VARLENGTH   /* nothing: [RPY_VARLENGTH] => [] */
 # define RPY_LENGTH0     0       /* array decl [0] are ok  */
 # define RPY_DUMMY_VARLENGTH     char _dummy[0];
 #else
+typedef unsigned char bool_t;
 # define RPY_VARLENGTH   1       /* [RPY_VARLENGTH] => [1] */
 # define RPY_LENGTH0     1       /* array decl [0] are bad */
 # define RPY_DUMMY_VARLENGTH     /* nothing */
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to