From ece689f3360265b8ad05f39ae59d82f263d898df Mon Sep 17 00:00:00 2001 From: Francois Pichet Date: Mon, 25 Jul 2011 22:00:44 +0000 Subject: Fix the MSVC build. 2 problems: - buildPieces was return a C++ object from inside an extern "C". (MSVC didn't like that) - clang_getCursorReferenceNameRange was missing a CINDEX_LINKAGE causing a link error. llvm-svn: 135983 --- clang/include/clang-c/Index.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'clang/include/clang-c') diff --git a/clang/include/clang-c/Index.h b/clang/include/clang-c/Index.h index 8d35419a432..d4fa9a2453e 100644 --- a/clang/include/clang-c/Index.h +++ b/clang/include/clang-c/Index.h @@ -2404,7 +2404,8 @@ CINDEX_LINKAGE CXCursor clang_getSpecializedCursorTemplate(CXCursor C); * \returns The piece of the name pointed to by the given cursor. If there is no * name, or if the PieceIndex is out-of-range, a null-cursor will be returned. */ -CXSourceRange clang_getCursorReferenceNameRange(CXCursor C, unsigned NameFlags, +CINDEX_LINKAGE CXSourceRange clang_getCursorReferenceNameRange(CXCursor C, + unsigned NameFlags, unsigned PieceIndex); enum CXNameRefFlags { -- cgit v1.2.3