Skip to content

Commit

Permalink
Fix Mingw build and suppress attribute warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
pierre-aimi committed Mar 7, 2023
1 parent b736d0a commit 82afee6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion include/SQLiteCpp/SQLiteCppExport.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/

/* Windows DLL export/import */
#if defined(_WIN32) && defined(SQLITECPP_COMPILE_DLL)
#if defined(_WIN32)&& !defined(__GNUC__) && defined(SQLITECPP_COMPILE_DLL)
#if SQLITECPP_DLL_EXPORT
#define SQLITECPP_API __declspec(dllexport)
#pragma message("Exporting symbols")
Expand Down
1 change: 1 addition & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ sqlitecpp_args = cxx.get_supported_arguments(
'-Wswitch-enum',
'-Wshadow',
'-Wno-long-long',
'-Wno-attributes',
)
sqlitecpp_link = []
sqlitecpp_deps = [
Expand Down

0 comments on commit 82afee6

Please sign in to comment.