Skip to content

Commit 0223676

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 (cherry picked from commit d747f82)
1 parent 4a6d335 commit 0223676

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
@@ -3705,7 +3705,7 @@ CINDEX_LINKAGE unsigned clang_visitChildren(CXCursor parent,
37053705
typedef enum CXChildVisitResult (^CXCursorVisitorBlock)(CXCursor cursor,
37063706
CXCursor parent);
37073707
#else
3708-
typedef _CXChildVisitResult *CXCursorVisitorBlock;
3708+
typedef struct _CXChildVisitResult *CXCursorVisitorBlock;
37093709
#endif
37103710

37113711
/**

0 commit comments

Comments
 (0)