From 82afee652ba0419ecca4311c7be8c4107d0fd4e3 Mon Sep 17 00:00:00 2001 From: Pierre Proske Date: Tue, 7 Mar 2023 17:03:32 +1100 Subject: [PATCH] Fix Mingw build and suppress attribute warnings --- include/SQLiteCpp/SQLiteCppExport.h | 2 +- meson.build | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/SQLiteCpp/SQLiteCppExport.h b/include/SQLiteCpp/SQLiteCppExport.h index 8f76f0f..8629306 100644 --- a/include/SQLiteCpp/SQLiteCppExport.h +++ b/include/SQLiteCpp/SQLiteCppExport.h @@ -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") diff --git a/meson.build b/meson.build index 4439612..10240e4 100644 --- a/meson.build +++ b/meson.build @@ -57,6 +57,7 @@ sqlitecpp_args = cxx.get_supported_arguments( '-Wswitch-enum', '-Wshadow', '-Wno-long-long', + '-Wno-attributes', ) sqlitecpp_link = [] sqlitecpp_deps = [