fix mac and darwin builds
This commit is contained in:
@@ -27,8 +27,8 @@ static int so_dlclose(void* h) {
|
|||||||
// Go callback bridge — forward-declared here, implemented via //export below.
|
// Go callback bridge — forward-declared here, implemented via //export below.
|
||||||
extern void goPluginHostCallback(
|
extern void goPluginHostCallback(
|
||||||
uintptr_t ctx,
|
uintptr_t ctx,
|
||||||
const char* event, int eventLen,
|
char* event, int eventLen,
|
||||||
const char* payload, int payloadLen);
|
char* payload, int payloadLen);
|
||||||
|
|
||||||
// Call the plugin's PluginOnLoad, injecting our callback bridge + context.
|
// Call the plugin's PluginOnLoad, injecting our callback bridge + context.
|
||||||
static int so_call_onload(void* fn, const char* info, int infoLen, uintptr_t ctx) {
|
static int so_call_onload(void* fn, const char* info, int infoLen, uintptr_t ctx) {
|
||||||
|
|||||||
@@ -55,8 +55,8 @@ static int so_dlclose(void* h) {
|
|||||||
// Go callback bridge — forward-declared here, implemented via //export below.
|
// Go callback bridge — forward-declared here, implemented via //export below.
|
||||||
extern void goPluginHostCallback(
|
extern void goPluginHostCallback(
|
||||||
uintptr_t ctx,
|
uintptr_t ctx,
|
||||||
const char* event, int eventLen,
|
char* event, int eventLen,
|
||||||
const char* payload, int payloadLen);
|
char* payload, int payloadLen);
|
||||||
|
|
||||||
// Call the plugin's PluginOnLoad, injecting our callback bridge + context.
|
// Call the plugin's PluginOnLoad, injecting our callback bridge + context.
|
||||||
static int so_call_onload(void* fn, const char* info, int infoLen, uintptr_t ctx) {
|
static int so_call_onload(void* fn, const char* info, int infoLen, uintptr_t ctx) {
|
||||||
|
|||||||
Reference in New Issue
Block a user