diff --git a/configure.py b/configure.py index 680ce836..cc9c8936 100644 --- a/configure.py +++ b/configure.py @@ -210,6 +210,12 @@ cflags_runtime = [ "-inline auto,deferred", ] +# Dolphin library flags +cflags_dolphin = [ + *cflags_base, + "-fp_contract off", +] + # Metrowerks library flags cflags_msl = [ *cflags_base, @@ -304,7 +310,7 @@ def DolphinLib(lib_name, objects): return { "lib": lib_name, "mw_version": "GC/1.2.5n", - "cflags": cflags_base, + "cflags": cflags_dolphin, "host": False, "objects": objects, } diff --git a/src/dolphin/mtx/quat.c b/src/dolphin/mtx/quat.c index a874e14c..66964bf0 100644 --- a/src/dolphin/mtx/quat.c +++ b/src/dolphin/mtx/quat.c @@ -1,5 +1,9 @@ #include "dolphin/mtx.h" -#include "math.h" + +float acosf(float x); + +float sinf(float x); +float cosf(float x); void PSQUATMultiply(register const Quaternion *a, register const Quaternion *b, register Quaternion *ab) {