Skip to content

Commit 581faa8

Browse files
authored
Merge pull request #6 from yukawa/support_static_lib_for_win
Introduce ZINNIA_STATIC_LIBRARY for Windows
2 parents 814a49b + fd74d8c commit 581faa8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

zinnia/zinnia.h

+3-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ extern "C" {
2121

2222
#ifdef _WIN32
2323
#include <windows.h>
24-
# ifdef DLL_EXPORT
24+
# if defined(ZINNIA_STATIC_LIBRARY)
25+
# define ZINNIA_DLL_EXTERN
26+
# elif defined(DLL_EXPORT)
2527
# define ZINNIA_DLL_EXTERN __declspec(dllexport)
2628
# else
2729
# define ZINNIA_DLL_EXTERN __declspec(dllimport)

0 commit comments

Comments
 (0)