Author: Amaury Forgeot d'Arc <[email protected]>
Branch: remove-PYPY_NOT_MAIN_FILE
Changeset: r57187:72762434d28c
Date: 2012-09-06 21:00 +0200
http://bitbucket.org/pypy/pypy/changeset/72762434d28c/
Log: Probably fix remaining compilation errors
diff --git a/pypy/translator/c/src/asm_gcc_x86.c
b/pypy/translator/c/src/asm_gcc_x86.c
--- a/pypy/translator/c/src/asm_gcc_x86.c
+++ b/pypy/translator/c/src/asm_gcc_x86.c
@@ -2,6 +2,9 @@
* It replaces some complex macros with native assembler instructions.
*/
+#include <stdio.h>
+#include <stdlib.h>
+
# if 0 /* disabled */
void op_int_overflowed(void)
{
diff --git a/pypy/translator/c/src/asm_ppc.c b/pypy/translator/c/src/asm_ppc.c
--- a/pypy/translator/c/src/asm_ppc.c
+++ b/pypy/translator/c/src/asm_ppc.c
@@ -1,3 +1,5 @@
+#include "src/asm_ppc.h"
+
#define __dcbst(base, index) \
__asm__ ("dcbst %0, %1" : /*no result*/ : "b%" (index), "r" (base) :
"memory")
#define __icbi(base, index) \
diff --git a/pypy/translator/c/src/mem.c b/pypy/translator/c/src/mem.c
--- a/pypy/translator/c/src/mem.c
+++ b/pypy/translator/c/src/mem.c
@@ -1,5 +1,6 @@
#include "common_header.h"
#include "src/support.h"
+#include <stdlib.h>
/*** tracking raw mallocs and frees for debugging ***/
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit