diff --git a/include/openlibm_fenv.h b/include/openlibm_fenv.h index 5439dbf..740f100 100644 --- a/include/openlibm_fenv.h +++ b/include/openlibm_fenv.h @@ -14,7 +14,7 @@ #include #elif defined(__s390__) #include -#elif defined(__sh3__) +#elif defined(__sh3__) || defined(__sh__) #include #else #error "Unsupported platform" diff --git a/src/cdefs-compat.h b/src/cdefs-compat.h index ead7589..9356608 100644 --- a/src/cdefs-compat.h +++ b/src/cdefs-compat.h @@ -34,7 +34,7 @@ #else #ifdef __ELF__ #ifdef __STDC__ -#if defined(__sh3__) +#if defined(__sh3__) || defined(__sh__) #define openlibm_weak_reference(sym,alias) \ __asm__(".weak _" #alias); \ __asm__(".equ _" #alias ", _" #sym) @@ -42,7 +42,7 @@ #define openlibm_weak_reference(sym,alias) \ __asm__(".weak " #alias); \ __asm__(".equ " #alias ", " #sym) -#endif /* __sh3__ */ +#endif /* __sh3__ || __sh__ */ #ifdef __warn_references #define openlibm_warn_references(sym,msg) __warn_references(sym,msg) #else diff --git a/src/fpmath.h b/src/fpmath.h index 2052b22..11b534f 100644 --- a/src/fpmath.h +++ b/src/fpmath.h @@ -43,7 +43,7 @@ #include "mips_fpmath.h" #elif defined(__s390__) #include "s390_fpmath.h" -#elif defined(__sh3__) +#elif defined(__sh3__) || defined(__sh__) #include "sh3eb_fpmath.h" #endif