vcpkg/ports/gts/fix_missing_extern.patch
Alexander Neumann 9b22b40c6c
[gts] fix build with clang-cl (#26184)
* gts fix dllexport definitions.

* v db

* Revert trailing whitespace addition.

Co-authored-by: Billy O'Neal <bion@microsoft.com>
2022-08-06 00:16:14 -07:00

14 lines
390 B
Diff

diff --git a/src/gts.h b/src/gts.h
index 1b7691531..1e87167bc 100644
--- a/src/gts.h
+++ b/src/gts.h
@@ -40,7 +40,7 @@ extern "C" {
*/
#if 1
# ifdef GTS_COMPILATION
-# define GTS_C_VAR __declspec(dllexport)
+# define GTS_C_VAR extern __declspec(dllexport)
# else /* not GTS_COMPILATION */
# define GTS_C_VAR extern __declspec(dllimport)
# endif /* not GTS_COMPILATION */