mirror of
https://github.com/pspdev/pspsdk.git
synced 2025-12-31 20:56:18 +00:00
Rename libpsplibc to libcglue
This commit is contained in:
@@ -37,8 +37,8 @@ extern const char* sce_newlib_main_thread_name __attribute__((weak));
|
||||
toolchain. */
|
||||
extern SceModuleInfo module_info __attribute__((weak));
|
||||
|
||||
/* Allow newlib/psplibc to provide an init hook to be called before main */
|
||||
extern void __psp_libc_init(int argc, char *argv[]);
|
||||
/* Allow to provide a libc init hook to be called before main */
|
||||
extern void __libcglue_init(int argc, char *argv[]);
|
||||
extern void _init(void);
|
||||
extern void _fini(void);
|
||||
extern int main(int argc, char *argv[]);
|
||||
@@ -73,7 +73,7 @@ void _main(SceSize args, void *argp)
|
||||
argv[argc] = NULL;
|
||||
|
||||
/* Call libc initialization hook */
|
||||
__psp_libc_init(argc, argv);
|
||||
__libcglue_init(argc, argv);
|
||||
|
||||
/* Make sure _fini() is called when the program ends. */
|
||||
atexit((void *) _fini);
|
||||
|
||||
@@ -40,8 +40,8 @@ extern const char* sce_newlib_main_thread_name __attribute__((weak));
|
||||
toolchain. */
|
||||
extern SceModuleInfo module_info __attribute__((weak));
|
||||
|
||||
/* Allow newlib/psplibc to provide an init hook to be called before main */
|
||||
extern void __psp_libc_init(int argc, char *argv[]);
|
||||
/* Allow to provide a libc init hook to be called before main */
|
||||
extern void __libcglue_init(int argc, char *argv[]);
|
||||
extern void _init(void);
|
||||
extern void _fini(void);
|
||||
extern int main(int argc, char *argv[]);
|
||||
@@ -78,7 +78,7 @@ void _main(SceSize args, void *argp)
|
||||
argv[argc] = NULL;
|
||||
|
||||
/* Call libc initialization hook */
|
||||
__psp_libc_init(argc, argv);
|
||||
__libcglue_init(argc, argv);
|
||||
|
||||
/* Make sure _fini() is called when the program ends. */
|
||||
atexit((void *) _fini);
|
||||
|
||||
Reference in New Issue
Block a user