-
Notifications
You must be signed in to change notification settings - Fork 518
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #406 Dllexport import from pierre-aimi/dllexport_i…
…mport
- Loading branch information
Showing
14 changed files
with
152 additions
and
80 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
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
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,40 @@ | ||
/** | ||
* @file SQLiteCppExport.h | ||
* @ingroup SQLiteCpp | ||
* @brief File with macros needed in the generation of Windows DLLs | ||
* | ||
* | ||
* Copyright (c) 2012-2022 Sebastien Rombauts (sebastien.rombauts@gmail.com) | ||
* | ||
* Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt | ||
* or copy at http://opensource.org/licenses/MIT) | ||
*/ | ||
|
||
#pragma once | ||
|
||
/* | ||
* #define SQLITECPP_COMPILE_DLL to compile a DLL under Windows | ||
* #define SQLITECPP_EXPORT to export symbols when creating the DLL, otherwise it defaults to importing symbols | ||
*/ | ||
|
||
/* Windows DLL export/import */ | ||
#if defined(_WIN32)&& !defined(__GNUC__) && defined(SQLITECPP_COMPILE_DLL) | ||
#if SQLITECPP_DLL_EXPORT | ||
#define SQLITECPP_API __declspec(dllexport) | ||
#pragma message("Exporting symbols") | ||
#else | ||
#define SQLITECPP_API __declspec(dllimport) | ||
#pragma message("Importing symbols") | ||
#endif | ||
#else | ||
#if __GNUC__ >= 4 | ||
#define SQLITECPP_API __attribute__ ((visibility ("default"))) | ||
#else | ||
#define SQLITECPP_API | ||
#endif | ||
#endif | ||
|
||
#if defined(WIN32) && defined(SQLITECPP_COMPILE_DLL) | ||
#pragma warning( disable : 4251 ) | ||
#pragma warning( disable : 4275 ) | ||
#endif |
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
Oops, something went wrong.