Workaround missing <inttypes.h> on MSVC 2010

This commit is contained in:
Yegor Derevenets 2014-09-21 17:27:11 +02:00
parent 323114680e
commit ced9d24e35
28 changed files with 32 additions and 27 deletions

View File

@ -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

View File

@ -16,7 +16,7 @@
#ifdef CAPSTONE_HAS_ARM64
#include <inttypes.h>
#include "../../inttypes.h"
#include <stdio.h>
#include <stdlib.h>

View File

@ -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"

View File

@ -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"

View File

@ -19,7 +19,7 @@
#include <stdio.h>
#include <string.h>
#include <inttypes.h>
#include "../../inttypes.h"
#include "../../utils.h"

View File

@ -16,7 +16,7 @@
#ifdef CAPSTONE_HAS_MIPS
#include <inttypes.h>
#include "../../inttypes.h"
#include <stdlib.h>
#include <stdio.h> // debug
#include <string.h>

View File

@ -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.

View File

@ -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

View File

@ -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

View File

@ -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"

View File

@ -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>

View File

@ -19,7 +19,7 @@
#ifdef CAPSTONE_HAS_X86
#include <inttypes.h> // debug
#include "../../inttypes.h" // debug
#include <string.h>
#include "../../cs_priv.h"

View File

@ -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>

View File

@ -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

View File

@ -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
View File

@ -0,0 +1,5 @@
#if defined(_MSC_VER) && _MSC_VER < 1700
#include "msvc/headers/inttypes.h"
#else
#include <inttypes.h>
#endif

View File

@ -9,7 +9,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <inttypes.h>
#include "../../inttypes.h"
#include <capstone/capstone.h>

View File

@ -3,7 +3,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <inttypes.h>
#include "../inttypes.h"
#include <capstone.h>

View File

@ -3,7 +3,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <inttypes.h>
#include "../inttypes.h"
#include <capstone.h>

View File

@ -3,7 +3,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <inttypes.h>
#include "../inttypes.h"
#include <capstone.h>

View File

@ -3,7 +3,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <inttypes.h>
#include "../inttypes.h"
#include <capstone.h>

View File

@ -3,7 +3,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <inttypes.h>
#include "../inttypes.h"
#include <capstone.h>

View File

@ -2,7 +2,7 @@
/* By Nguyen Anh Quynh <aquynh@gmail.com>, 2013> */
#include <stdio.h>
#include <inttypes.h>
#include "../inttypes.h"
#include <capstone.h>

View File

@ -3,7 +3,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <inttypes.h>
#include "../inttypes.h"
#include <capstone.h>

View File

@ -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>

View File

@ -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>

View File

@ -3,7 +3,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <inttypes.h>
#include "../inttypes.h"
#include <capstone.h>

View File

@ -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>