add header guard to myinttypes.h

This commit is contained in:
Nguyen Anh Quynh 2015-06-08 23:32:33 +08:00
parent c18e97ddf5
commit 75093f2cf7
1 changed files with 5 additions and 0 deletions

View File

@ -1,6 +1,9 @@
/* Capstone Disassembly Engine */
/* By Axel Souchet, 2014 */
#ifndef CS_MYINTTYPES_H
#define CS_MYINTTYPES_H
#if defined(CAPSTONE_HAS_OSXKERNEL) || (defined(_MSC_VER) && _MSC_VER <= 1700)
// this system does not have inttypes.h
@ -58,3 +61,5 @@ typedef unsigned long long uint64_t;
#else // this system has inttypes.h by default
#include <inttypes.h>
#endif
#endif