mirror of
https://github.com/wjwwood/serial.git
synced 2026-01-22 19:54:57 +08:00
Win: make static lib build default
This commit is contained in:
parent
bb5c5806ff
commit
024f80634f
@ -1,17 +1,16 @@
|
||||
#pragma once
|
||||
|
||||
|
||||
#if defined(_WIN32)
|
||||
# if defined(LIBSERIAL_STATIC)
|
||||
# define LIBSERIAL_EXPORT_API
|
||||
# else
|
||||
# if defined(LIBSERIAL_EXPORTS)
|
||||
# define LIBSERIAL_EXPORT_API __declspec(dllexport)
|
||||
# else
|
||||
# define LIBSERIAL_EXPORT_API __declspec(dllimport)
|
||||
# endif
|
||||
# endif
|
||||
#else
|
||||
# define LIBSERIAL_EXPORT_API
|
||||
#endif
|
||||
|
||||
#pragma once
|
||||
|
||||
#if defined(_WIN32)
|
||||
# if !defined(LIBSERIAL_DYNAMIC)
|
||||
# define LIBSERIAL_EXPORT_API
|
||||
# else
|
||||
# if defined(LIBSERIAL_EXPORTS)
|
||||
# define LIBSERIAL_EXPORT_API __declspec(dllexport)
|
||||
# else
|
||||
# define LIBSERIAL_EXPORT_API __declspec(dllimport)
|
||||
# endif
|
||||
# endif
|
||||
#else
|
||||
# define LIBSERIAL_EXPORT_API
|
||||
#endif
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user