mirror of
https://github.com/capstone-engine/capstone.git
synced 2024-11-23 21:49:46 +00:00
Workaround missing <inttypes.h> on MSVC 2010
This commit is contained in:
parent
323114680e
commit
ced9d24e35
@ -2,13 +2,13 @@
|
||||
/* By Nguyen Anh Quynh <aquynh@gmail.com>, 2013-2014 */
|
||||
|
||||
#include <stdint.h>
|
||||
#include <inttypes.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "SStream.h"
|
||||
#include "cs_priv.h"
|
||||
#include "inttypes.h"
|
||||
#include "utils.h"
|
||||
|
||||
#ifdef _MSC_VER
|
||||
|
@ -16,7 +16,7 @@
|
||||
|
||||
#ifdef CAPSTONE_HAS_ARM64
|
||||
|
||||
#include <inttypes.h>
|
||||
#include "../../inttypes.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <inttypes.h>
|
||||
#include "../../inttypes.h"
|
||||
|
||||
#include "ARMAddressingModes.h"
|
||||
#include "ARMBaseInfo.h"
|
||||
|
@ -19,7 +19,7 @@
|
||||
#include <stdio.h> // DEBUG
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <inttypes.h>
|
||||
#include "../../inttypes.h"
|
||||
|
||||
#include "ARMInstPrinter.h"
|
||||
#include "ARMAddressingModes.h"
|
||||
|
@ -19,7 +19,7 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <inttypes.h>
|
||||
#include "../../inttypes.h"
|
||||
|
||||
#include "../../utils.h"
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
|
||||
#ifdef CAPSTONE_HAS_MIPS
|
||||
|
||||
#include <inttypes.h>
|
||||
#include "../../inttypes.h"
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h> // debug
|
||||
#include <string.h>
|
||||
|
@ -10,7 +10,7 @@
|
||||
/* By Nguyen Anh Quynh <aquynh@gmail.com>, 2013-2014 */
|
||||
|
||||
#include <stdio.h> // debug
|
||||
#include <inttypes.h>
|
||||
#include "../../inttypes.h"
|
||||
|
||||
/// printInstruction - This method is automatically generated by tablegen
|
||||
/// from the instruction set description.
|
||||
|
@ -10,7 +10,7 @@
|
||||
/* By Nguyen Anh Quynh <aquynh@gmail.com>, 2013-2014 */
|
||||
|
||||
#include <stdio.h> // debug
|
||||
#include <inttypes.h>
|
||||
#include "../../inttypes.h"
|
||||
|
||||
|
||||
/// printInstruction - This method is automatically generated by tablegen
|
||||
|
@ -10,7 +10,7 @@
|
||||
/* By Nguyen Anh Quynh <aquynh@gmail.com>, 2013-2014 */
|
||||
|
||||
#include <stdio.h> // debug
|
||||
#include <inttypes.h>
|
||||
#include "../../inttypes.h"
|
||||
|
||||
|
||||
/// printInstruction - This method is automatically generated by tablegen
|
||||
|
@ -19,7 +19,7 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <inttypes.h>
|
||||
#include "../../inttypes.h"
|
||||
|
||||
#include "SystemZInstPrinter.h"
|
||||
#include "../../MCInst.h"
|
||||
|
@ -19,7 +19,7 @@
|
||||
#if defined(CAPSTONE_HAS_X86) && !defined(CAPSTONE_DIET) && !defined(CAPSTONE_X86_ATT_DISABLE)
|
||||
|
||||
#include <ctype.h>
|
||||
#include <inttypes.h>
|
||||
#include "../../inttypes.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
@ -19,7 +19,7 @@
|
||||
|
||||
#ifdef CAPSTONE_HAS_X86
|
||||
|
||||
#include <inttypes.h> // debug
|
||||
#include "../../inttypes.h" // debug
|
||||
#include <string.h>
|
||||
|
||||
#include "../../cs_priv.h"
|
||||
|
@ -18,7 +18,7 @@
|
||||
#ifdef CAPSTONE_HAS_X86
|
||||
|
||||
#include <ctype.h>
|
||||
#include <inttypes.h>
|
||||
#include "../../inttypes.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
@ -10,7 +10,7 @@
|
||||
/* By Nguyen Anh Quynh <aquynh@gmail.com>, 2013-2014 */
|
||||
|
||||
#include <stdio.h> // debug
|
||||
#include <inttypes.h>
|
||||
#include "../../inttypes.h"
|
||||
|
||||
|
||||
/// printInstruction - This method is automatically generated by tablegen
|
||||
|
@ -19,7 +19,7 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <inttypes.h>
|
||||
#include "../../inttypes.h"
|
||||
|
||||
#include "XCoreInstPrinter.h"
|
||||
#include "../../MCInst.h"
|
||||
|
5
inttypes.h
Normal file
5
inttypes.h
Normal file
@ -0,0 +1,5 @@
|
||||
#if defined(_MSC_VER) && _MSC_VER < 1700
|
||||
#include "msvc/headers/inttypes.h"
|
||||
#else
|
||||
#include <inttypes.h>
|
||||
#endif
|
@ -9,7 +9,7 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <inttypes.h>
|
||||
#include "../../inttypes.h"
|
||||
|
||||
#include <capstone/capstone.h>
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <inttypes.h>
|
||||
#include "../inttypes.h"
|
||||
|
||||
#include <capstone.h>
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <inttypes.h>
|
||||
#include "../inttypes.h"
|
||||
|
||||
#include <capstone.h>
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <inttypes.h>
|
||||
#include "../inttypes.h"
|
||||
|
||||
#include <capstone.h>
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <inttypes.h>
|
||||
#include "../inttypes.h"
|
||||
|
||||
#include <capstone.h>
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <inttypes.h>
|
||||
#include "../inttypes.h"
|
||||
|
||||
#include <capstone.h>
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
/* By Nguyen Anh Quynh <aquynh@gmail.com>, 2013> */
|
||||
|
||||
#include <stdio.h>
|
||||
#include <inttypes.h>
|
||||
#include "../inttypes.h"
|
||||
|
||||
#include <capstone.h>
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <inttypes.h>
|
||||
#include "../inttypes.h"
|
||||
|
||||
#include <capstone.h>
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
/* By Nguyen Anh Quynh <aquynh@gmail.com>, 2013-2014 */
|
||||
|
||||
#include <stdio.h>
|
||||
#include <inttypes.h>
|
||||
#include "../inttypes.h"
|
||||
|
||||
#include <capstone.h>
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
/* By Nguyen Anh Quynh <aquynh@gmail.com>, 2013-2014 */
|
||||
|
||||
#include <stdio.h>
|
||||
#include <inttypes.h>
|
||||
#include "../inttypes.h"
|
||||
|
||||
#include <capstone.h>
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <inttypes.h>
|
||||
#include "../inttypes.h"
|
||||
|
||||
#include <capstone.h>
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
/* By Nguyen Anh Quynh <aquynh@gmail.com>, 2013-2014 */
|
||||
|
||||
#include <stdio.h>
|
||||
#include <inttypes.h>
|
||||
#include "../inttypes.h"
|
||||
|
||||
#include <capstone.h>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user