Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 93c051e

Browse files
committedNov 6, 2021
Do not export DllMain for STATIC_PLUGIN_TARGET builds
Signed-off-by: falkTX <falktx@falktx.com>
1 parent 7a4b81c commit 93c051e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎source/modules/water/water.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,14 @@ HINSTANCE getCurrentModuleInstanceHandle() noexcept
3333
return currentModuleHandle;
3434
}
3535

36+
# ifdef STATIC_PLUGIN_TARGET
3637
CARLA_EXPORT
3738
BOOL WINAPI DllMain(HINSTANCE hInst, DWORD, LPVOID)
3839
{
3940
currentModuleHandle = hInst;
4041
return 1;
4142
}
43+
# endif
4244
#endif
4345

4446
}

0 commit comments

Comments
 (0)
Please sign in to comment.