Fix Mingw build and suppress attribute warnings

This commit is contained in:
Pierre Proske 2023-03-07 17:03:32 +11:00
parent b736d0a759
commit 82afee652b
2 changed files with 2 additions and 1 deletions

View File

@ -18,7 +18,7 @@
*/ */
/* Windows DLL export/import */ /* Windows DLL export/import */
#if defined(_WIN32) && defined(SQLITECPP_COMPILE_DLL) #if defined(_WIN32)&& !defined(__GNUC__) && defined(SQLITECPP_COMPILE_DLL)
#if SQLITECPP_DLL_EXPORT #if SQLITECPP_DLL_EXPORT
#define SQLITECPP_API __declspec(dllexport) #define SQLITECPP_API __declspec(dllexport)
#pragma message("Exporting symbols") #pragma message("Exporting symbols")

View File

@ -57,6 +57,7 @@ sqlitecpp_args = cxx.get_supported_arguments(
'-Wswitch-enum', '-Wswitch-enum',
'-Wshadow', '-Wshadow',
'-Wno-long-long', '-Wno-long-long',
'-Wno-attributes',
) )
sqlitecpp_link = [] sqlitecpp_link = []
sqlitecpp_deps = [ sqlitecpp_deps = [