From ea60fc286960de60e4424541eac64a545fcfe82b Mon Sep 17 00:00:00 2001 From: PatTheMav Date: Sat, 15 Apr 2023 22:35:21 +0200 Subject: [PATCH] mac-virtualcam: Fix DAL plugin entrypoint not being exported With the recent change to enforce C17 standard for compilers, default visibility was also enforced to be hidden. This also automatically hid the `PlugInMain` symbol required for DAL plugins. Adding the `__exported` decorator makes the symbol explicitly visible. --- plugins/mac-virtualcam/src/dal-plugin/OBSDALPlugInMain.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/mac-virtualcam/src/dal-plugin/OBSDALPlugInMain.mm b/plugins/mac-virtualcam/src/dal-plugin/OBSDALPlugInMain.mm index b3d88a981..dde5e24c3 100644 --- a/plugins/mac-virtualcam/src/dal-plugin/OBSDALPlugInMain.mm +++ b/plugins/mac-virtualcam/src/dal-plugin/OBSDALPlugInMain.mm @@ -23,7 +23,7 @@ //! PlugInMain is the entrypoint for the plugin extern "C" { -void *PlugInMain(CFAllocatorRef, CFUUIDRef requestedTypeUUID) +__exported void *PlugInMain(CFAllocatorRef, CFUUIDRef requestedTypeUUID) { DLogFunc(@"version=%@", PLUGIN_VERSION); if (!CFEqual(requestedTypeUUID, kCMIOHardwarePlugInTypeID)) {