mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-06-19 12:02:05 +02:00
Merge pull request #376 from tbeu/patch-1
Only set MSGPACK_DLLEXPORT if not already defined
This commit is contained in:
commit
5e57dc5da7
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user