[pypy-commit] pypy remove-PYPY_NOT_MAIN_FILE: Fix compilation warning.

amauryfa noreply at buildbot.pypy.org
Wed Oct 3 10:34:23 CEST 2012


Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: remove-PYPY_NOT_MAIN_FILE
Changeset: r57761:5bd32c540fbe
Date: 2012-10-03 08:35 +0200
http://bitbucket.org/pypy/pypy/changeset/5bd32c540fbe/

Log:	Fix compilation warning.

diff --git a/pypy/translator/c/src/profiling.c b/pypy/translator/c/src/profiling.c
--- a/pypy/translator/c/src/profiling.c
+++ b/pypy/translator/c/src/profiling.c
@@ -1,4 +1,3 @@
-
 #include <stddef.h>
 #if defined(__GNUC__) && defined(__linux__)
 
diff --git a/pypy/translator/c/src/profiling.h b/pypy/translator/c/src/profiling.h
--- a/pypy/translator/c/src/profiling.h
+++ b/pypy/translator/c/src/profiling.h
@@ -1,6 +1,5 @@
-
-#ifndef PROFILING_H
-#define PROFILING_H
+#ifndef _PYPY_PROFILING_H
+#define _PYPY_PROFILING_H
 
 void pypy_setup_profiling();
 void pypy_teardown_profiling();
diff --git a/pypy/translator/c/src/support.c b/pypy/translator/c/src/support.c
--- a/pypy/translator/c/src/support.c
+++ b/pypy/translator/c/src/support.c
@@ -1,5 +1,6 @@
 #include "common_header.h"
 #include <src/support.h>
+#include <src/exception.h>
 
 /************************************************************/
 /***  C header subsection: support functions              ***/


More information about the pypy-commit mailing list