Skip to content

Commit

Permalink
platform/android_nosdl/dlsym-weak: move includes/defines to the begin…
Browse files Browse the repository at this point in the history
…ning
  • Loading branch information
mittorn authored and a1batross committed Feb 27, 2024
1 parent bc10e24 commit a9ac4d5
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions engine/platform/android/dlsym-weak.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,15 @@
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*/

#if defined __ANDROID__ && !defined XASH_64BIT
#include "build.h"
#if !XASH_64BIT
#include <string.h>
#include <android/log.h>
#include <dlfcn.h>
#include "linker.h"
extern "C" {
#include "lib_android.h"
}

static Elf_Sym* soinfo_elf_lookup( soinfo* si, unsigned hash, const char* name )
{
Expand Down Expand Up @@ -118,8 +121,6 @@ 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 )
{
Expand Down

0 comments on commit a9ac4d5

Please sign in to comment.