Skip to content

Commit 140a569

Browse files
committed
Symbol visibility on windoze
1 parent c64294e commit 140a569

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

IsoSpec++/platform.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,11 @@
9696
#define ISOSPEC_EXPORT_SYMBOL
9797
#endif
9898

99+
#if defined(_WIN32) || defined(_WIN64)
100+
#define ISOSPEC_C_API __declspec(dllexport)
101+
#else
99102
#define ISOSPEC_C_API
103+
#endif
100104

101105
#if !defined(__cpp_if_constexpr)
102106
#define constexpr_if if

0 commit comments

Comments
 (0)