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 = [