churchyard / rpms / python3

Forked from rpms/python3 6 years ago
Clone

Blame python-3.2b2-fix-ppc-debug-build.patch

5659c63
diff -up Python-3.2b2/Python/ceval.c.fix-ppc-debug-build Python-3.2b2/Python/ceval.c
5659c63
--- Python-3.2b2/Python/ceval.c.fix-ppc-debug-build	2011-01-05 16:37:27.007598805 -0500
5659c63
+++ Python-3.2b2/Python/ceval.c	2011-01-05 16:45:06.562652472 -0500
5659c63
@@ -30,10 +30,11 @@
5659c63
 
5659c63
 typedef unsigned long long uint64;
5659c63
 
5659c63
-#if defined(__ppc__) /* <- Don't know if this is the correct symbol; this
5659c63
-                           section should work for GCC on any PowerPC
5659c63
-                           platform, irrespective of OS.
5659c63
-                           POWER?  Who knows :-) */
5659c63
+/* PowerPC suppport.
5659c63
+   "__ppc__" appears to be the preprocessor definition to detect on OS X, whereas
5659c63
+   "__powerpc__" appears to be the correct one for Linux with GCC
5659c63
+*/
5659c63
+#if defined(__ppc__) || defined (__powerpc__)
5659c63
 
5659c63
 #define READ_TIMESTAMP(var) ppc_getcounter(&var)
5659c63