Skip to content

Commit 48f9f90

Browse files
authored
Add ifndef _FINALROM to kmcprintf to avoid building when not debug version (#93)
1 parent 2717d45 commit 48f9f90

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/error/kmcprintf.c

+4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
#include "ultraerror.h"
77
#include "../libc/xstdio.h"
88

9+
#ifndef _FINALROM
10+
911
extern u32 __kmc_pt_mode;
1012

1113
static void* proutSyncPrintf(void* str, const char* buf, size_t n) {
@@ -244,3 +246,5 @@ static void kmcErrorHandler(s16 code, s16 numArgs, ...) {
244246

245247
va_end(ap);
246248
}
249+
250+
#endif

0 commit comments

Comments
 (0)