Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Backport release-3_22] [o2] fix static linking on windows (#46064)
* [o2] fix static linking on windows pipacs/o2@1f9604e * Weird char fixup Co-authored-by: Matthias Kuhn <matthias@opengis.ch>
- Loading branch information
Showing
2 changed files
with
6 additions
and
2 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
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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
#pragma once | ||
|
||
// For exporting symbols from Windows' DLLs | ||
#ifdef _WIN32 | ||
#if defined (_WIN32) && defined(O2_SHARED_LIB) | ||
#ifdef O2_DLL_EXPORT | ||
#define O0_EXPORT __declspec(dllexport) | ||
#else | ||
#define O0_EXPORT __declspec(dllimport) | ||
#endif | ||
#else | ||
#define O0_EXPORT | ||
#endif | ||
#endif |