Author: Armin Rigo <[email protected]>
Branch: stmgc-c4
Changeset: r65108:96da7cbe93df
Date: 2013-06-29 22:18 +0200
http://bitbucket.org/pypy/pypy/changeset/96da7cbe93df/

Log:    Fix this, lost because of a mistake during merge

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,4 +12,15 @@
 #include <stddef.h>
 
 
+#ifdef __GNUC__
+# define RPY_VARLENGTH   /* nothing: [RPY_VARLENGTH] => [] */
+# define RPY_LENGTH0     0       /* array decl [0] are ok  */
+# define RPY_DUMMY_VARLENGTH     char _dummy[0];
+#else
+# define RPY_VARLENGTH   1       /* [RPY_VARLENGTH] => [1] */
+# define RPY_LENGTH0     1       /* array decl [0] are bad */
+# define RPY_DUMMY_VARLENGTH     /* nothing */
+#endif
+
+
 #include "src/align.h"
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to