Merge pull request #2549 from DennySun2100/master
fix: GCC pragma causes warning on non-GNU compilers
This commit is contained in:
commit
80b68953df
1 changed files with 4 additions and 0 deletions
|
|
@ -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_
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue