mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-26 02:18:04 +01:00
fix(SQLParser): static linking error on windows
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
#endif
|
#if defined(_USRDLL)
|
||||||
#if defined(SQLParser_EXPORTS)
|
#if defined(SQLParser_EXPORTS)
|
||||||
#define SQLParser_API __declspec(dllexport)
|
#define SQLParser_API __declspec(dllexport)
|
||||||
#else
|
#else
|
||||||
#define SQLParser_API __declspec(dllimport)
|
#define SQLParser_API __declspec(dllimport)
|
||||||
#endif
|
#endif
|
||||||
#else
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#if !defined(SQLParser_API)
|
||||||
#if defined (__GNUC__) && (__GNUC__ >= 4)
|
#if defined (__GNUC__) && (__GNUC__ >= 4)
|
||||||
#define SQLParser_API __attribute__ ((visibility ("default")))
|
#define SQLParser_API __attribute__ ((visibility ("default")))
|
||||||
#else
|
#else
|
||||||
|
|||||||
Reference in New Issue
Block a user