From b57c90dd236f336eb0bbed4ff383b9bb49d644ab Mon Sep 17 00:00:00 2001
From: Nguyen Anh Quynh <aquynh@gmail.com>
Date: Thu, 23 Jan 2014 21:43:08 +0800
Subject: [PATCH] fix some issues introduced by MSVC port

---
 arch/PowerPC/PPCMapping.c | 8 ++++++--
 include/mips.h            | 2 +-
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/arch/PowerPC/PPCMapping.c b/arch/PowerPC/PPCMapping.c
index a2f9558f5..6d0f41afe 100644
--- a/arch/PowerPC/PPCMapping.c
+++ b/arch/PowerPC/PPCMapping.c
@@ -914,7 +914,9 @@ static insn_map insns[] = {
 	{ PPC_gBCLRL, PPC_INS_BCLRL, { PPC_REG_CTR, PPC_REG_LR, PPC_REG_RM, 0 }, { PPC_REG_LR, PPC_REG_CTR, 0 }, { 0 }, 0, 0 },
 };
 
-static insn_map alias_insns[] = {0, 0, {0}, {0}, {0}, 0, 0};
+static insn_map alias_insns[] = {
+	{ 0, 0, { 0 }, { 0 }, { 0 }, 0, 0 },
+};
 
 // given internal insn id, return public instruction info
 void PPC_get_insn_id(cs_struct *h, cs_insn *insn, unsigned int id)
@@ -1430,7 +1432,9 @@ static name_map insn_name_maps[] = {
 };
 
 // special alias insn
-static name_map alias_insn_names[] = {0, 0};
+static name_map alias_insn_names[] = {
+	{ 0, NULL }
+};
 
 const char *PPC_insn_name(csh handle, unsigned int id)
 {
diff --git a/include/mips.h b/include/mips.h
index 3a7dcf089..48cee9c45 100644
--- a/include/mips.h
+++ b/include/mips.h
@@ -13,7 +13,7 @@ extern "C" {
 
 #ifdef _MSC_VER
 #pragma warning(disable:4201)
-#endif _MSC_VER
+#endif
 
 //> Operand type for instruction's operands
 typedef enum mips_op_type {