1
0
mirror of https://github.com/wjwwood/serial.git synced 2026-01-22 03:34:53 +08:00

Win: make static lib build default

This commit is contained in:
CristiFati 2022-04-14 23:31:26 +03:00
parent bb5c5806ff
commit 024f80634f

View File

@ -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