AcessNative - Cleaning up debug
[tpg/acess2.git] / AcessNative / ld-acess_src / elf_load.c
index 590da37..909c24a 100644 (file)
@@ -3,7 +3,7 @@
  *\r
  * ELF Executable Loader Code\r
  */\r
-#define DEBUG  1\r
+#define DEBUG  0\r
 #include <stdlib.h>\r
 #include <stdio.h>\r
 #include <string.h>\r
@@ -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