mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-03-18 14:37:13 -04:00
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.
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user