diff options
author | ProjectRevoTPP <projectrevotpp@hotmail.com> | 2017-12-28 02:47:41 -0500 |
---|---|---|
committer | ProjectRevoTPP <projectrevotpp@hotmail.com> | 2017-12-28 02:47:41 -0500 |
commit | d6f88aaae447dbc22ff5fa289343343e7034263b (patch) | |
tree | 506e0d275b169ef9a421c0c63710e19661658696 | |
parent | a3c7adb2ede2aead120f763bc49306caf69be9e4 (diff) |
fix for printf
-rw-r--r-- | src/engine/main.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/engine/main.c b/src/engine/main.c index 11c540d07..e52551f72 100644 --- a/src/engine/main.c +++ b/src/engine/main.c @@ -83,6 +83,10 @@ static void WaitForVBlank(void); #define B_START_SELECT (B_BUTTON | START_BUTTON | SELECT_BUTTON) +#ifndef NOAGBPRN + #include <stdlib.h> // don't include if not needed. +#endif + void AgbMain() { RegisterRamReset(RESET_ALL); @@ -103,6 +107,7 @@ void AgbMain() // to print stuff from, as anything else declared is NOT authoritative. #ifndef NOAGBPRN AGBPrintInit(); + __mb_cur_max = 1; // fix for AGBPrintf #endif if (gFlashMemoryPresent != TRUE) |