Try fixing MSVC compiler errors.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142289 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/tools/c-index-test/c-index-test.c b/tools/c-index-test/c-index-test.c
index 97c78db..5ebad6f 100644
--- a/tools/c-index-test/c-index-test.c
+++ b/tools/c-index-test/c-index-test.c
@@ -1507,6 +1507,7 @@
   const char *cname, *end;
   CXIdxFile file;
   unsigned line, column;
+  int isHeader;
   
   clang_indexLoc_getFileLocation(loc, &file, 0, &line, &column, 0);
   if (line == 0) {
@@ -1516,7 +1517,7 @@
   filename = clang_getFileName((CXFile)file);
   cname = clang_getCString(filename);
   end = cname + strlen(cname);
-  int isHeader = (end[-2] == '.' && end[-1] == 'h');
+  isHeader = (end[-2] == '.' && end[-1] == 'h');
   
   if (isHeader) {
     printCXIndexFile(file);
@@ -1685,9 +1686,14 @@
 static CXIdxEntity index_importedEntity(CXClientData client_data,
                                         CXIdxImportedEntityInfo *info) {
   IndexData *index_data;
-  CXIdxIndexedDeclInfo DeclInfo = { info->cursor, info->loc, 0 };
-  CXIdxIndexedEntityInfo EntityInfo = { info->entityInfo, &DeclInfo };
+  CXIdxIndexedDeclInfo DeclInfo;
+  CXIdxIndexedEntityInfo EntityInfo;
   const char *name;
+  DeclInfo.cursor = info->cursor;
+  DeclInfo.loc = info->loc;
+  DeclInfo.container = 0;
+  EntityInfo.entityInfo = info->entityInfo;
+  EntityInfo.declInfo = &DeclInfo;
   index_data = (IndexData *)client_data;
   printCheck(index_data);