Skip to content

Commit a9a0718

Browse files
committed
Add SCRATCHCPPRENDER_EXPORT macro
1 parent adb856e commit a9a0718

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

‎include/scratchcpp-render/scratchcpp-render.h‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,20 @@
22

33
#pragma once
44

5+
#if defined(_MSC_VER) || defined(WIN64) || defined(_WIN64) || defined(__WIN64__) || defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__)
6+
#define DECL_EXPORT __declspec(dllexport)
7+
#define DECL_IMPORT __declspec(dllimport)
8+
#else
9+
#define DECL_EXPORT __attribute__((visibility("default")))
10+
#define DECL_IMPORT __attribute__((visibility("default")))
11+
#endif
12+
13+
#if defined(SCRATCHCPPRENDER_LIBRARY)
14+
#define SCRATCHCPPRENDER_EXPORT DECL_EXPORT
15+
#else
16+
#define SCRATCHCPPRENDER_EXPORT DECL_IMPORT
17+
#endif
18+
519
#include <string>
620

721
/*! \brief The main namespace of the library. */

0 commit comments

Comments
 (0)