Skip to content

Commit

Permalink
Check the CPU architecture in hde32.c/hde64.c.
Browse files Browse the repository at this point in the history
Support predefined macros of GCC in addition to MSVC.
  • Loading branch information
TsudaKageyu committed Dec 5, 2016
1 parent d91d6da commit 8c8a31f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/hde/hde32.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*
*/

#ifdef _M_IX86
#if defined(_M_IX86) || defined(__i386__)

#include "hde32.h"
#include "table32.h"
Expand Down Expand Up @@ -323,4 +323,4 @@ unsigned int hde32_disasm(const void *code, hde32s *hs)
return (unsigned int)hs->len;
}

#endif // _M_IX86
#endif // defined(_M_IX86) || defined(__i386__)
4 changes: 2 additions & 2 deletions src/hde/hde64.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*
*/

#ifdef _M_X64
#if defined(_M_X64) || defined(__x86_64__)

#include "hde64.h"
#include "table64.h"
Expand Down Expand Up @@ -334,4 +334,4 @@ unsigned int hde64_disasm(const void *code, hde64s *hs)
return (unsigned int)hs->len;
}

#endif // _M_X64
#endif // defined(_M_X64) || defined(__x86_64__)

0 comments on commit 8c8a31f

Please sign in to comment.