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.
This commit is contained in:
parent
2f4b0f6a82
commit
ced4827405
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue