Merge pull request #2549 from DennySun2100/master

fix: GCC pragma causes warning on non-GNU compilers
This commit is contained in:
Andrew Hlynskyi 2023-08-21 22:34:16 +03:00 committed by GitHub
commit 80b68953df
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,7 +1,9 @@
#ifndef TREE_SITTER_API_H_
#define TREE_SITTER_API_H_
#ifdef __GNUC__
#pragma GCC visibility push(default)
#endif
#ifdef __cplusplus
extern "C" {
@ -1165,6 +1167,8 @@ void ts_set_allocator(
}
#endif
#ifdef __GNUC__
#pragma GCC visibility pop
#endif
#endif // TREE_SITTER_API_H_