diff --git a/src/gba/bios.c b/src/gba/bios.c index c68119550..89d0d7cd1 100644 --- a/src/gba/bios.c +++ b/src/gba/bios.c @@ -10,10 +10,6 @@ #include "gba/memory.h" #include "isa-inlines.h" -#ifndef M_PI -#define M_PI 3.141592654f -#endif - const uint32_t GBA_BIOS_CHECKSUM = 0xBAAE187F; const uint32_t GBA_DS_BIOS_CHECKSUM = 0xBAAE1880; diff --git a/src/util/common.h b/src/util/common.h index 0f9a90255..90746f082 100644 --- a/src/util/common.h +++ b/src/util/common.h @@ -23,4 +23,8 @@ #define UNUSED(V) (void)(V) +#ifndef M_PI +#define M_PI 3.141592654f +#endif + #endif