fix(lib): allow hiding symbols
This commit is contained in:
parent
4b12eab927
commit
4bbaee2f56
3 changed files with 8 additions and 2 deletions
|
|
@ -9,7 +9,7 @@ extern "C" {
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#ifdef _WIN32
|
||||
#if defined(TREE_SITTER_HIDDEN_SYMBOLS) || defined(_WIN32)
|
||||
#define TS_PUBLIC
|
||||
#else
|
||||
#define TS_PUBLIC __attribute__((visibility("default")))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue