Skip to content

Commit d747f82

Browse files
committed
libclang: add missing struct in the declaration
When building with compilers that do not support the Blocks extension, we would fail to compile due to the missing type specifier on the `typedef`. This should repair those builds. Fixes: llvm#62640
1 parent 0599863 commit d747f82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/include/clang-c/Index.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3874,7 +3874,7 @@ CINDEX_LINKAGE unsigned clang_visitChildren(CXCursor parent,
38743874
typedef enum CXChildVisitResult (^CXCursorVisitorBlock)(CXCursor cursor,
38753875
CXCursor parent);
38763876
#else
3877-
typedef _CXChildVisitResult *CXCursorVisitorBlock;
3877+
typedef struct _CXChildVisitResult *CXCursorVisitorBlock;
38783878
#endif
38793879

38803880
/**

0 commit comments

Comments
 (0)