diff --git a/src/PowerPC_EABI_Support/MSL/MSL_C/MSL_Common/Include/ansi_fp.h b/src/PowerPC_EABI_Support/MSL/MSL_C/MSL_Common/Include/ansi_fp.h index 5aa24991a..eda36bf41 100644 --- a/src/PowerPC_EABI_Support/MSL/MSL_C/MSL_Common/Include/ansi_fp.h +++ b/src/PowerPC_EABI_Support/MSL/MSL_C/MSL_Common/Include/ansi_fp.h @@ -1,6 +1,7 @@ #ifndef _MSL_COMMON_ANSI_FP_H #define _MSL_COMMON_ANSI_FP_H +#include "dolphin/types.h" #include "float.h" #define SIGDIGLEN 36 @@ -22,7 +23,7 @@ typedef struct decform { short digits; } decform; -/* void __ull2dec(decimal*, u64); +void __ull2dec(decimal*, u64); void __timesdec(decimal*, const decimal*, const decimal*); void __str2dec(decimal*, const char*, short); void __two_exp(decimal*, s16); @@ -31,6 +32,6 @@ BOOL __less_dec(const decimal*, const decimal*); void __minus_dec(decimal*, const decimal*, const decimal*); void __num2dec_internal(decimal*, f64); void __num2dec(const decform*, f64, decimal*); -f64 __dec2num(const decimal*); */ +f64 __dec2num(const decimal*); -#endif \ No newline at end of file +#endif diff --git a/src/PowerPC_EABI_Support/MSL/MSL_C/MSL_Common/Src/printf.c b/src/PowerPC_EABI_Support/MSL/MSL_C/MSL_Common/Src/printf.c index 4319f8e13..37e492368 100644 --- a/src/PowerPC_EABI_Support/MSL/MSL_C/MSL_Common/Src/printf.c +++ b/src/PowerPC_EABI_Support/MSL/MSL_C/MSL_Common/Src/printf.c @@ -8,6 +8,7 @@ #include "stdlib.h" #include "string.h" #include "wchar_io.h" +#include "ansi_fp.h" #define TARGET_FLOAT_BITS 64 #define TARGET_FLOAT_BYTES (TARGET_FLOAT_BITS / 8)