From 3c2a10ccf071588c6f17712886fe077bd097b692 Mon Sep 17 00:00:00 2001 From: Daniel-Robbins Date: Wed, 20 Dec 2023 08:41:23 +0000 Subject: [PATCH] Fix symbol visibility on macOS --- programs/local/chdb.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 }