Commit 8cee50eea5f17b8341e11d7cef5122fbbfb3787f

Ozkan Sezer 2021-12-07T19:32:56

removed stdlib.h from SDL_psp_main.c now that exit() is gone.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/src/main/psp/SDL_psp_main.c b/src/main/psp/SDL_psp_main.c
index fb3dd44..8eb173f 100644
--- a/src/main/psp/SDL_psp_main.c
+++ b/src/main/psp/SDL_psp_main.c
@@ -8,7 +8,6 @@
 #include "SDL_main.h"
 #include <pspkernel.h>
 #include <pspthreadman.h>
-#include <stdlib.h>
 
 #ifdef main
     #undef main
@@ -45,7 +44,7 @@ int sdl_psp_callback_thread(SceSize args, void *argp)
 
 int sdl_psp_setup_callbacks(void)
 {
-    int thid = 0;
+    int thid;
     thid = sceKernelCreateThread("update_thread",
                      sdl_psp_callback_thread, 0x11, 0xFA0, 0, 0);
     if(thid >= 0)