Skip to content

Commit

Permalink
Fix Apple PowerPC build
Browse files Browse the repository at this point in the history
Apple versions of GCC define __ppc__ instead of __powerpc__

Fixes JuliaMath#275
  • Loading branch information
MarcusCalhoun-Lopez committed May 5, 2023
1 parent 1d2c5e3 commit 00eaec9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/openlibm_fenv.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include <openlibm_fenv_amd64.h>
#elif defined(__i386__)
#include <openlibm_fenv_i387.h>
#elif defined(__powerpc__)
#elif defined(__powerpc__) || defined(__ppc__)
#include <openlibm_fenv_powerpc.h>
#elif defined(__mips__)
#include <openlibm_fenv_mips.h>
Expand Down
2 changes: 1 addition & 1 deletion src/fpmath.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
#else
#include "i386_fpmath.h"
#endif
#elif defined(__powerpc__)
#elif defined(__powerpc__) || defined(__ppc__)
#include "powerpc_fpmath.h"
#elif defined(__mips__)
#include "mips_fpmath.h"
Expand Down

0 comments on commit 00eaec9

Please sign in to comment.