mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-29 21:15:38 +08:00
bc01338fe2
* [cgicc]Fix usage error:lnk2019. * [cgicc]Fix static build. * [cgicc]Modify precompiled macro judgments based on library linkage.
16 lines
395 B
Diff
16 lines
395 B
Diff
diff --git a/cgicc/CgiDefs.h.in b/cgicc/CgiDefs.h.in
|
|
index 71b70ad..3793cd8 100644
|
|
--- a/cgicc/CgiDefs.h.in
|
|
+++ b/cgicc/CgiDefs.h.in
|
|
@@ -47,7 +47,9 @@
|
|
#ifdef WIN32
|
|
|
|
// export library symbols
|
|
-# ifdef CGICC_EXPORTS
|
|
+# ifdef CGICC_STATIC
|
|
+# define CGICC_API
|
|
+# elif defined(CGICC_EXPORTS)
|
|
# define CGICC_API __declspec(dllexport)
|
|
# else
|
|
# define CGICC_API __declspec(dllimport)
|