Skip to content

Commit

Permalink
Fix symbol visibility on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel-Robbins authored and auxten committed Dec 20, 2023
1 parent 115ddc2 commit 3c2a10c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions programs/local/chdb.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ extern "C" {
# include <stdint.h>
#endif

struct local_result
struct __attribute__((visibility("default"))) local_result
{
char * buf;
size_t len;
Expand All @@ -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
}
Expand Down

0 comments on commit 3c2a10c

Please sign in to comment.