From 95b43b3f7b47eb5bcc9efac47f633b76a5af07bd Mon Sep 17 00:00:00 2001 From: fgsfds Date: Mon, 13 May 2024 18:48:35 +0200 Subject: [PATCH] port: remove sprintf redeclaration --- include/PR/os_libc.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/PR/os_libc.h b/include/PR/os_libc.h index 23a13d72e..6ec0f4db8 100644 --- a/include/PR/os_libc.h +++ b/include/PR/os_libc.h @@ -32,6 +32,10 @@ #include "os_pfs.h" +#ifndef PLATFORM_N64 +#include +#endif + #ifdef _LANGUAGE_C_PLUS_PLUS extern "C" { #endif @@ -86,7 +90,9 @@ extern void bzero(void *, size_t); /* Printf */ +#ifdef PLATFORM_N64 extern int sprintf(char *s, const char *fmt, ...); +#endif extern void osSyncPrintf(const char *fmt, ...);