From 034d8a34fb0c1b049bb8cb5ea52868c4c6f47d5f Mon Sep 17 00:00:00 2001 From: midipix Date: Mon, 19 Dec 2016 18:58:30 -0500 Subject: 32/64-bit code path: use __SIZEOF_POINTER__ in anticipation of arm support. --- src/meta/pe_get_symbol_name.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src') 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) -- cgit v1.2.3