diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2023-05-10 10:31:53 -0700 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2023-05-10 10:31:53 -0700 |
commit | d747f8277b386059a74dee062295aa8d864398fc (patch) | |
tree | 5bac4f64e29157fa90c4c8eea7011f809207089c /clang/include | |
parent | 059986328c24c1b3588a9bde1d82d9ec41a0b0cb (diff) | |
download | llvm-d747f8277b386059a74dee062295aa8d864398fc.tar.gz |
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: #62640
Diffstat (limited to 'clang/include')
-rw-r--r-- | clang/include/clang-c/Index.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/include/clang-c/Index.h b/clang/include/clang-c/Index.h index 2c1bc02003ba..29c53c0382ab 100644 --- a/clang/include/clang-c/Index.h +++ b/clang/include/clang-c/Index.h @@ -3874,7 +3874,7 @@ CINDEX_LINKAGE unsigned clang_visitChildren(CXCursor parent, typedef enum CXChildVisitResult (^CXCursorVisitorBlock)(CXCursor cursor, CXCursor parent); #else -typedef _CXChildVisitResult *CXCursorVisitorBlock; +typedef struct _CXChildVisitResult *CXCursorVisitorBlock; #endif /** |