fix(SQLParser): static linking error on windows

This commit is contained in:
Aleksandar Fabijanic
2023-11-10 01:36:55 +01:00
parent 56f6caf8cf
commit be52ced34a
2 changed files with 13 additions and 30 deletions

View File

@@ -53,26 +53,6 @@
// Automatically link Data library. // Automatically link Data library.
// //
#if defined(_MSC_VER) #if defined(_MSC_VER)
#if defined(POCO_DLL)
#if defined(_DEBUG)
#define POCO_LIB_SUFFIX "d.lib"
#else
#define POCO_LIB_SUFFIX ".lib"
#endif
#elif defined(_DLL)
#if defined(_DEBUG)
#define POCO_LIB_SUFFIX "mdd.lib"
#else
#define POCO_LIB_SUFFIX "md.lib"
#endif
#else
#if defined(_DEBUG)
#define POCO_LIB_SUFFIX "mtd.lib"
#else
#define POCO_LIB_SUFFIX "mt.lib"
#endif
#endif
#if !defined(POCO_NO_AUTOMATIC_LIBS) && !defined(Data_EXPORTS) #if !defined(POCO_NO_AUTOMATIC_LIBS) && !defined(Data_EXPORTS)
#pragma comment(lib, "PocoData" POCO_LIB_SUFFIX) #pragma comment(lib, "PocoData" POCO_LIB_SUFFIX)
#endif #endif

View File

@@ -2,17 +2,20 @@
#define SQLPARSER_SQLPARSER_WIN_H #define SQLPARSER_SQLPARSER_WIN_H
#if defined(_WIN32) || defined(_WIN64) #if defined(_WIN32)
#if defined(_MSC_VER) #define strncasecmp _strnicmp
#define strncasecmp _strnicmp #define strcasecmp _stricmp
#define strcasecmp _stricmp #if defined(_USRDLL)
#if defined(SQLParser_EXPORTS)
#define SQLParser_API __declspec(dllexport)
#else
#define SQLParser_API __declspec(dllimport)
#endif
#endif #endif
#if defined(SQLParser_EXPORTS) #endif
#define SQLParser_API __declspec(dllexport)
#else
#define SQLParser_API __declspec(dllimport) #if !defined(SQLParser_API)
#endif
#else
#if defined (__GNUC__) && (__GNUC__ >= 4) #if defined (__GNUC__) && (__GNUC__ >= 4)
#define SQLParser_API __attribute__ ((visibility ("default"))) #define SQLParser_API __attribute__ ((visibility ("default")))
#else #else