1
0
mirror of https://github.com/wjwwood/serial.git synced 2026-01-22 11:44: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 #pragma once
#if defined(_WIN32)
#if defined(_WIN32) # if !defined(LIBSERIAL_DYNAMIC)
# if defined(LIBSERIAL_STATIC) # define LIBSERIAL_EXPORT_API
# define LIBSERIAL_EXPORT_API # else
# else # if defined(LIBSERIAL_EXPORTS)
# if defined(LIBSERIAL_EXPORTS) # define LIBSERIAL_EXPORT_API __declspec(dllexport)
# define LIBSERIAL_EXPORT_API __declspec(dllexport) # else
# else # define LIBSERIAL_EXPORT_API __declspec(dllimport)
# define LIBSERIAL_EXPORT_API __declspec(dllimport) # endif
# endif # endif
# endif #else
#else # define LIBSERIAL_EXPORT_API
# define LIBSERIAL_EXPORT_API #endif
#endif