Merge pull request #376 from tbeu/patch-1

Only set MSGPACK_DLLEXPORT if not already defined
This commit is contained in:
Takatoshi Kondo 2015-10-20 12:50:51 +09:00
commit 5e57dc5da7

View File

@ -38,11 +38,13 @@
# include <stdbool.h>
#endif
#if !defined(MSGPACK_DLLEXPORT)
#if defined(_MSC_VER)
# define MSGPACK_DLLEXPORT __declspec(dllexport)
#else /* _MSC_VER */
# define MSGPACK_DLLEXPORT
#endif /* _MSC_VER */
#endif
#ifdef _WIN32
# define _msgpack_atomic_counter_header <windows.h>