diff --git a/src/_cocoalayer.mm b/src/_cocoalayer.mm index b8151f498..a02312395 100644 --- a/src/_cocoalayer.mm +++ b/src/_cocoalayer.mm @@ -3,7 +3,7 @@ #import #include "_cocoalayer.h" // Example: make a global function you can call -extern "C" void _cocoasetdockicon(unsigned char* data, int width, int height) +extern "C" void CocoaSetDockIcon(unsigned char* data, int width, int height) { NSImage *dockIcon = [[NSImage alloc] initWithSize:NSMakeSize(width, height)]; CGDataProviderRef provider = CGDataProviderCreateWithData(nullptr, data, width*height*4, nullptr);