Create macro for defining and empty/dummy __psp_libc_init function

This commit is contained in:
Francisco Javier Trujillo Mata
2021-11-13 16:30:19 +01:00
parent 1fdb7fd770
commit 35e407e8f1

View File

@@ -144,4 +144,8 @@ enum PspModuleInfoAttr
/* Declare the name of the main thread */
#define PSP_MAIN_THREAD_NAME(s) const char* sce_newlib_main_thread_name = (s)
/* Disable the use of newlib, getting a minimal binary. */
#define PSP_DISABLE_NEWLIB() \
void __psp_libc_init(int argc, char *argv[]) {}
#endif /* PSPMODULEINFO_H */