From: Aurelien Jacobs Date: Sat, 18 Jun 2016 19:52:31 +0000 (+0200) Subject: ensure the only entry point of libdrivers doesn't have visibility=hidden X-Git-Tag: libsigrok-0.5.0~284 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=ced48274051be6b3b1ed612260c893fdb2525946;p=libsigrok.git ensure the only entry point of libdrivers doesn't have visibility=hidden This fixes the following build issue on OSX: Undefined symbols for architecture x86_64: "_sr_drivers_init", referenced from: _sr_init in backend.o This closes bug #802. --- diff --git a/src/drivers.c b/src/drivers.c index 6200e5ee..a5c21a08 100644 --- a/src/drivers.c +++ b/src/drivers.c @@ -42,7 +42,7 @@ extern struct sr_dev_driver *__stop_sr_driver_list; * * @param ctx Pointer to a libsigrok context struct. Must not be NULL. */ -SR_PRIV void sr_drivers_init(struct sr_context *ctx) +SR_API void sr_drivers_init(struct sr_context *ctx) { struct sr_dev_driver **drivers; GArray *array; diff --git a/src/libsigrok-internal.h b/src/libsigrok-internal.h index 96597e6d..3537c132 100644 --- a/src/libsigrok-internal.h +++ b/src/libsigrok-internal.h @@ -332,7 +332,7 @@ struct zip_stat; #define SR_REGISTER_DEV_DRIVER(name) \ SR_REGISTER_DEV_DRIVER_LIST(name##_list, &name); -SR_PRIV void sr_drivers_init(struct sr_context *context); +SR_API void sr_drivers_init(struct sr_context *context); struct sr_context { struct sr_dev_driver **driver_list;