Fix wrong function name and macro on ARM target

This commit is contained in:
mittorn 2023-12-16 21:49:35 +03:00 committed by Alibek Omarov
parent 892c735c86
commit ec92d05930
3 changed files with 3 additions and 3 deletions

View File

@ -118,7 +118,7 @@ static Elf_Sym* dlsym_handle_lookup( soinfo* si, const char* name )
{
return soinfo_elf_lookup( si, elfhash( name ), name );
}
#define XASH_ANDROID 1
#include "lib_android.h"
static int dladdr_fallback( const void *addr, Dl_info *info )

View File

@ -19,7 +19,7 @@ GNU General Public License for more details.
#include "platform/android/lib_android.h"
#include "platform/android/dlsym-weak.h" // Android < 5.0
void *Android_GetServerLibrary( void )
void *ANDROID_GetServerLibrary( void )
{
return svgame.hInstance;
}

View File

@ -20,7 +20,7 @@ GNU General Public License for more details.
#define Platform_POSIX_LoadLibrary( x ) ANDROID_LoadLibrary(( x ))
#define Platform_POSIX_GetProcAddress( x, y ) ANDROID_GetProcAddress(( x ), ( y ))
void *Android_GetServerLibrary( void );
void *ANDROID_GetServerLibrary( void );
void *ANDROID_LoadLibrary( const char *dllname );
void *ANDROID_GetProcAddress( void *hInstance, const char *name );