Fix Apple PowerPC build (#276)

Apple versions of GCC define __ppc__ instead of __powerpc__

Fixes #275
This commit is contained in:
MarcusCalhoun-Lopez 2023-06-24 20:26:52 -07:00 committed by GitHub
parent 1d2c5e3bf5
commit 12f5ffcc99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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>

View File

@ -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"