diff options
Diffstat (limited to 'src/meta')
-rw-r--r-- | src/meta/pe_get_symbol_name.c | 12 |
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) |