summaryrefslogtreecommitdiffhomepage
path: root/src/string
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-12-19 18:53:24 -0500
committermidipix <writeonce@midipix.org>2016-12-19 18:55:17 -0500
commit7f8d50abe18471c5a79951ad13b63d1bc125c47e (patch)
tree9eed3f42999bd37f1295bc8b85255b6d24c2b0ad /src/string
parent34d90026b95505886f419c79076fe2916d6f8b7a (diff)
downloadntapi-7f8d50abe18471c5a79951ad13b63d1bc125c47e.tar.bz2
ntapi-7f8d50abe18471c5a79951ad13b63d1bc125c47e.tar.xz
32/64-bit code path: use __SIZEOF_POINTER__ in anticipation of arm support.
Diffstat (limited to 'src/string')
-rw-r--r--src/string/ntapi_tt_hex_utf16_to_uintptr.c4
-rw-r--r--src/string/ntapi_tt_uintptr_to_hex_utf16.c4
-rw-r--r--src/string/ntapi_tt_uintptr_to_hex_utf8.c4
3 files changed, 6 insertions, 6 deletions
diff --git a/src/string/ntapi_tt_hex_utf16_to_uintptr.c b/src/string/ntapi_tt_hex_utf16_to_uintptr.c
index 494e5ef..0edc870 100644
--- a/src/string/ntapi_tt_hex_utf16_to_uintptr.c
+++ b/src/string/ntapi_tt_hex_utf16_to_uintptr.c
@@ -94,9 +94,9 @@ int32_t __fastcall __ntapi_tt_hex_utf16_to_uintptr(
__in wchar16_t hex_key_utf16[],
__out uintptr_t * key)
{
- #if defined (__NT32)
+ #if (__SIZEOF_POINTER__ == 4)
return __ntapi_tt_hex_utf16_to_uint32(hex_key_utf16,key);
- #elif defined (__NT64)
+ #elif (__SIZEOF_POINTER__ == 8)
return __ntapi_tt_hex_utf16_to_uint64(hex_key_utf16,key);
#endif
}
diff --git a/src/string/ntapi_tt_uintptr_to_hex_utf16.c b/src/string/ntapi_tt_uintptr_to_hex_utf16.c
index bb7ae8c..2cd0b69 100644
--- a/src/string/ntapi_tt_uintptr_to_hex_utf16.c
+++ b/src/string/ntapi_tt_uintptr_to_hex_utf16.c
@@ -73,12 +73,12 @@ void __fastcall __ntapi_tt_uintptr_to_hex_utf16(
__in uintptr_t key,
__out wchar16_t * formatted_key)
{
- #if defined (__NT32)
+ #if (__SIZEOF_POINTER__ == 4)
__ntapi_tt_uint_to_hex_utf16(
key,
formatted_key,
32);
- #elif defined (__NT64)
+ #elif (__SIZEOF_POINTER__ == 8)
__ntapi_tt_uint_to_hex_utf16(
key,
formatted_key,
diff --git a/src/string/ntapi_tt_uintptr_to_hex_utf8.c b/src/string/ntapi_tt_uintptr_to_hex_utf8.c
index 7fb1dc5..d18725b 100644
--- a/src/string/ntapi_tt_uintptr_to_hex_utf8.c
+++ b/src/string/ntapi_tt_uintptr_to_hex_utf8.c
@@ -65,9 +65,9 @@ void __fastcall __ntapi_tt_uintptr_to_hex_utf8(
__in uintptr_t key,
__out unsigned char * buffer)
{
- #if defined (__NT32)
+ #if (__SIZEOF_POINTER__ == 4)
__ntapi_tt_uint_to_hex_utf8(key,buffer,32);
- #elif defined (__NT64)
+ #elif (__SIZEOF_POINTER__ == 8)
__ntapi_tt_uint_to_hex_utf8(key,buffer,64);
#endif
}