1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-04-20 21:20:24 +02:00

Actually commit the mod-null changes this time!

This commit is contained in:
Leland Lucius
2016-10-01 20:23:09 -05:00
parent 01eb4745a6
commit f4d38476a6
3 changed files with 52 additions and 66 deletions

View File

@@ -12,27 +12,7 @@
* else gets all symbols made public, which gets messy */
/* The Visual Studio implementation */
#ifdef _MSC_VER
#define MOD_NULL_DLL_IMPORT _declspec(dllimport)
#ifdef BUILDING_MOD_NULL
#define MOD_NULL_DLL_API _declspec(dllexport)
#elif _DLL
#define MOD_NULL_DLL_API _declspec(dllimport)
#else
#define AUDACITY_DLL_API
#endif
#endif //_MSC_VER
/* The GCC implementation */
#ifdef CC_HASVISIBILITY // this is provided by the configure script, is only
// enabled for suitable GCC versions
/* The incantation is a bit weird here because it uses ELF symbol stuff. If we
* make a symbol "default" it makes it visible (for import or export). Making it
* "hidden" means it is invisible outside the shared object. */
#define MOD_NULL_DLL_IMPORT __attribute__((visibility("default")))
#ifdef BUILDING_MOD_NULL
#define MOD_NULL_DLL_API __attribute__((visibility("default")))
#else
#define MOD_NULL_DLL_API __attribute__((visibility("default")))
#endif
#define DLL_API _declspec(dllexport)
#else
#define DLL_API __attribute__ ((visibility("default")))
#endif