AcessNative - Fixing crashes
[tpg/acess2.git] / AcessNative / ld-acess_src / elf_load.c
index 590da37..8cafc01 100644 (file)
@@ -190,9 +190,9 @@ void *Elf64Load(int FD, Elf64_Ehdr *hdr)
        \r
        ENTER("iFD", FD);\r
        \r
-       #if BITS <= 32\r
-       Warning("ELF64 being loaded in 32-bit env, this may not work");\r
-       #endif\r
+       if( sizeof(void*) == 4) {\r
+               Warning("ELF64 being loaded in 32-bit env, this may not work");\r
+       }\r
 \r
        // Check for a program header\r
        if(hdr->e_phoff == 0) {\r

UCC git Repository :: git.ucc.asn.au