wingo pushed a commit to branch lightning
in repository guile.

commit 19123bae5db8d401bace9f8659e4340dc2cac7f9
Author: pcpa <[email protected]>
Date:   Fri Mar 8 12:13:09 2013 -0300

    Add missing __ppc__ definition.
    
        * check/lightning.c: Add missing ppc preprocessor definition.
---
 ChangeLog         | 4 ++++
 check/lightning.c | 5 +++++
 2 files changed, 9 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index 5d076e4..24b92cd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2013-03-08 Paulo Andrade <[email protected]>
+
+       * check/lightning.c: Add missing ppc preprocessor definition.
+
 2013-03-06 Paulo Andrade <[email protected]>
 
        * check/float.tst: Comment out the int to negative infinity
diff --git a/check/lightning.c b/check/lightning.c
index 24e5240..439aede 100644
--- a/check/lightning.c
+++ b/check/lightning.c
@@ -3960,6 +3960,11 @@ main(int argc, char *argv[])
                          sizeof(cmdline) - opt_short,
                          " -D__arm__=1");
 #endif
+#if defined(__ppc__) || defined(__powerpc__)
+    opt_short += snprintf(cmdline + opt_short,
+                         sizeof(cmdline) - opt_short,
+                         " -D__ppc__=1");
+#endif
 #if defined(__sparc__)
     opt_short += snprintf(cmdline + opt_short,
                          sizeof(cmdline) - opt_short,

Reply via email to