1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-21 22:12:58 +02:00

Don't duplicate defs of DLL_IMPORT, DLL_API, ModuleDispatchTypes

This commit is contained in:
Paul Licameli
2020-09-22 12:34:13 -04:00
parent dcd8bca896
commit fd94b66483
7 changed files with 39 additions and 58 deletions

View File

@@ -4,15 +4,3 @@
// that uses this DLL. This way any other project whose source files include this file see
// MOD_NULL_DLL_API functions as being imported from a DLL, whereas this DLL sees symbols
// defined with this macro as being exported.
/* Magic for dynamic library import and export. This is unfortunately
* compiler-specific because there isn't a standard way to do it. Currently it
* works with the Visual Studio compiler for windows, and for GCC 4+. Anything
* else gets all symbols made public, which gets messy */
/* The Visual Studio implementation */
#ifdef _MSC_VER
#define DLL_API _declspec(dllexport)
#else
#define DLL_API __attribute__ ((visibility("default")))
#endif