mirror of
https://github.com/kichikuou/xsystem35-sdl2.git
synced 2026-10-14 18:09:41 +03:00
Enable loading system39.ain when enable_shared=no
This commit is contained in:
+4
-3
@@ -48,7 +48,6 @@
|
||||
system39.ain の読み込み
|
||||
*/
|
||||
int s39ain_init(void) {
|
||||
#ifdef ENABLE_LTDL
|
||||
FILE *fp;
|
||||
long len;
|
||||
char *buf;
|
||||
@@ -174,6 +173,10 @@ int s39ain_init(void) {
|
||||
}
|
||||
}
|
||||
|
||||
#ifndef ENABLE_LTDL
|
||||
free(buf);
|
||||
return dllnum == 0 ? OK : NG;
|
||||
#else
|
||||
errors = lt_dlinit();
|
||||
if (errors) {
|
||||
printf("lt_dlinit fail\n");
|
||||
@@ -211,7 +214,5 @@ int s39ain_init(void) {
|
||||
|
||||
free(buf);
|
||||
return OK;
|
||||
#else
|
||||
return NG;
|
||||
#endif // ENABLE_LTDL
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user