mirror of
https://github.com/pocoproject/poco.git
synced 2025-03-25 00:02:13 +01:00
fix(SQLParser): static linking error on windows
This commit is contained in:
parent
56f6caf8cf
commit
be52ced34a
@ -53,26 +53,6 @@
|
||||
// Automatically link Data library.
|
||||
//
|
||||
#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)
|
||||
#pragma comment(lib, "PocoData" POCO_LIB_SUFFIX)
|
||||
#endif
|
||||
|
@ -2,17 +2,20 @@
|
||||
#define SQLPARSER_SQLPARSER_WIN_H
|
||||
|
||||
|
||||
#if defined(_WIN32) || defined(_WIN64)
|
||||
#if defined(_MSC_VER)
|
||||
#define strncasecmp _strnicmp
|
||||
#define strcasecmp _stricmp
|
||||
#if defined(_WIN32)
|
||||
#define strncasecmp _strnicmp
|
||||
#define strcasecmp _stricmp
|
||||
#if defined(_USRDLL)
|
||||
#if defined(SQLParser_EXPORTS)
|
||||
#define SQLParser_API __declspec(dllexport)
|
||||
#else
|
||||
#define SQLParser_API __declspec(dllimport)
|
||||
#endif
|
||||
#endif
|
||||
#if defined(SQLParser_EXPORTS)
|
||||
#define SQLParser_API __declspec(dllexport)
|
||||
#else
|
||||
#define SQLParser_API __declspec(dllimport)
|
||||
#endif
|
||||
#else
|
||||
#endif
|
||||
|
||||
|
||||
#if !defined(SQLParser_API)
|
||||
#if defined (__GNUC__) && (__GNUC__ >= 4)
|
||||
#define SQLParser_API __attribute__ ((visibility ("default")))
|
||||
#else
|
||||
|
Loading…
x
Reference in New Issue
Block a user