diff --git a/programs/local/chdb.h b/programs/local/chdb.h index 81b71aeb923..3bc5ee6d864 100644 --- a/programs/local/chdb.h +++ b/programs/local/chdb.h @@ -9,7 +9,7 @@ extern "C" { # include #endif -struct local_result +struct __attribute__((visibility("default"))) local_result { char * buf; size_t len; @@ -19,8 +19,8 @@ struct local_result uint64_t bytes_read; }; -struct local_result * query_stable(int argc, char ** argv); -void free_result(struct local_result * result); +__attribute__((visibility("default"))) struct local_result * query_stable(int argc, char ** argv); +__attribute__((visibility("default"))) void free_result(struct local_result * result); #ifdef __cplusplus }