[issue10655] Wrong powerpc define in Python/ceval.c
adrian
report at bugs.python.org
Thu Dec 9 13:48:36 CET 2010
adrian <adrian at lisas.de> added the comment:
Here is a patch that I had to include in my Linux PowerPC build of 2.7 and 3.2
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -31,10 +31,12 @@
typedef unsigned long long uint64;
-#if defined(__ppc__) /* <- Don't know if this is the correct symbol; this
+#if defined(__ppc__) || defined (__powerpc__) /* <- Don't know if
+ this is the correct symbol; this
section should work for GCC on any PowerPC
platform, irrespective of OS.
- POWER? Who knows :-) */
+ POWER? Who knows :-)
+ __powerpc__ is necessary for Linux */
#define READ_TIMESTAMP(var) ppc_getcounter(&var)
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10655>
_______________________________________
More information about the Python-bugs-list
mailing list