-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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>
- Loading branch information
1 parent
778c58d
commit 9b22b40
Showing
6 changed files
with
35 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/src/gts.h b/src/gts.h | ||
index 1b76915..ae1d888 100644 | ||
--- a/src/gts.h | ||
+++ b/src/gts.h | ||
@@ -38,7 +38,7 @@ extern "C" { | ||
* we prefix variable declarations so they can | ||
* properly get exported in windows dlls. | ||
*/ | ||
-#ifdef NATIVE_WIN32 | ||
+#if 1 | ||
# ifdef GTS_COMPILATION | ||
# define GTS_C_VAR __declspec(dllexport) | ||
# else /* not GTS_COMPILATION */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
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 */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters