diff options
author | Zeex <zeex@rocketmail.com> | 2014-11-27 20:07:14 +0600 |
---|---|---|
committer | Zeex <zeex@rocketmail.com> | 2014-11-27 20:07:14 +0600 |
commit | 868069e64d908108a74938688ecdfa99afd6c97b (patch) | |
tree | f92b2767f932eb7a6dcde5ddde6ea93338cebf8b /subhook_x86.c | |
parent | d1a5d310bb0d67808203409883a669ec24798330 (diff) | |
download | subhook-868069e64d908108a74938688ecdfa99afd6c97b.zip subhook-868069e64d908108a74938688ecdfa99afd6c97b.tar.gz subhook-868069e64d908108a74938688ecdfa99afd6c97b.tar.bz2 |
Fix compile errors
Diffstat (limited to 'subhook_x86.c')
-rw-r--r-- | subhook_x86.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/subhook_x86.c b/subhook_x86.c index 06b75b7..ce7ffc5 100644 --- a/subhook_x86.c +++ b/subhook_x86.c @@ -31,12 +31,16 @@ #include "subhook.h" #include "subhook_private.h" -typedef unsigned char uint8_t; -typedef int int32_t; -#if SUBHOOK_BITS == 64 - typedef long long intptr_t; +#ifdef SUBHOOK_WINDOWS + typedef unsigned __int8 uint8_t; + typedef __int32 int32_t; + #if SUBHOOK_BITS == 64 + typedef __int64 intptr_t; + #elif SUBHOOK_BITS == 32 + typedef __int32 intptr_t; + #endif #else - typedef int intptr_t; + #include <stdint.h> #endif #define JMP_INSN_OPCODE 0xE9 |