summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-12-19 18:58:30 -0500
committermidipix <writeonce@midipix.org>2016-12-19 18:58:30 -0500
commit034d8a34fb0c1b049bb8cb5ea52868c4c6f47d5f (patch)
treeb2ae56c370fc149f7609898c5a24e869d9d54e20 /src
parent5293d478406e985e36594eeb32d13f51781c5505 (diff)
downloadpemagine-034d8a34fb0c1b049bb8cb5ea52868c4c6f47d5f.tar.bz2
pemagine-034d8a34fb0c1b049bb8cb5ea52868c4c6f47d5f.tar.xz
32/64-bit code path: use __SIZEOF_POINTER__ in anticipation of arm support.
Diffstat (limited to 'src')
-rw-r--r--src/meta/pe_get_symbol_name.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/meta/pe_get_symbol_name.c b/src/meta/pe_get_symbol_name.c
index 331792a..67b1410 100644
--- a/src/meta/pe_get_symbol_name.c
+++ b/src/meta/pe_get_symbol_name.c
@@ -20,13 +20,13 @@ static int pe_enum_exports_callback(
enum pe_callback_reason reason,
void * context);
-#if defined (__NT32)
+#if (__SIZEOF_POINTER__ == 4)
static char * pe_get_imported_symbol_info_32(
const void * sym_addr,
struct pe_ldr_tbl_entry ** ldr_tbl_entry);
#endif
-#if defined (__NT64)
+#if (__SIZEOF_POINTER__ == 8)
static char * pe_get_imported_symbol_info_64(
const void * sym_addr,
struct pe_ldr_tbl_entry ** ldr_tbl_entry);
@@ -55,11 +55,11 @@ char * pe_get_import_symbol_info(
const void * sym_addr,
struct pe_ldr_tbl_entry ** ldr_tbl_entry)
{
- #if defined(__NT32)
+ #if (__SIZEOF_POINTER__ == 4)
return pe_get_imported_symbol_info_32(
sym_addr,
ldr_tbl_entry);
- #elif defined (__NT64)
+ #elif (__SIZEOF_POINTER__ == 8)
return pe_get_imported_symbol_info_64(
sym_addr,
ldr_tbl_entry);
@@ -91,7 +91,7 @@ static int pe_enum_exports_callback(
}
-#ifdef __NT32
+#if (__SIZEOF_POINTER__ == 4)
static char * pe_get_imported_symbol_info_32(
const void * sym_addr,
struct pe_ldr_tbl_entry ** ldr_tbl_entry)
@@ -128,7 +128,7 @@ static char * pe_get_imported_symbol_info_32(
#endif
-#ifdef __NT64
+#if (__SIZEOF_POINTER__ == 8)
static char * pe_get_imported_symbol_info_64(
const void * sym_addr,
struct pe_ldr_tbl_entry ** ldr_tbl_entry)