Browse Source

Add DISTRHO_API macro, unused for now

Signed-off-by: falkTX <falktx@falktx.com>
pull/375/head
falkTX 3 years ago
parent
commit
20477b35dd
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
3 changed files with 4 additions and 2 deletions
  1. +1
    -1
      dgl/Application.hpp
  2. +1
    -1
      dgl/Window.hpp
  3. +2
    -0
      distrho/src/DistrhoDefines.h

+ 1
- 1
dgl/Application.hpp View File

@@ -33,7 +33,7 @@ START_NAMESPACE_DGL


Unless stated otherwise, functions within this class are not thread-safe. Unless stated otherwise, functions within this class are not thread-safe.
*/ */
class Application
class DISTRHO_API Application
{ {
public: public:
/** /**


+ 1
- 1
dgl/Window.hpp View File

@@ -52,7 +52,7 @@ class TopLevelWidget;


... ...
*/ */
class Window
class DISTRHO_API Window
{ {
struct PrivateData; struct PrivateData;




+ 2
- 0
distrho/src/DistrhoDefines.h View File

@@ -27,10 +27,12 @@


/* Check OS */ /* Check OS */
#if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) #if defined(WIN32) || defined(_WIN32) || defined(__WIN32__)
# define DISTRHO_API
# define DISTRHO_PLUGIN_EXPORT extern "C" __declspec (dllexport) # define DISTRHO_PLUGIN_EXPORT extern "C" __declspec (dllexport)
# define DISTRHO_OS_WINDOWS 1 # define DISTRHO_OS_WINDOWS 1
# define DISTRHO_DLL_EXTENSION "dll" # define DISTRHO_DLL_EXTENSION "dll"
#else #else
# define DISTRHO_API
# define DISTRHO_PLUGIN_EXPORT extern "C" __attribute__ ((visibility("default"))) # define DISTRHO_PLUGIN_EXPORT extern "C" __attribute__ ((visibility("default")))
# if defined(__APPLE__) # if defined(__APPLE__)
# define DISTRHO_OS_MAC 1 # define DISTRHO_OS_MAC 1


Loading…
Cancel
Save