mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-24 17:30:44 +02:00
Win build fix (#4260)
* fix(SQLParser): use Data_API if available * fix(ProGen): wrong AdditionalOptions separator #4259 * fix(SQLParser): add default export define when embedded
This commit is contained in:
committed by
GitHub
parent
5fa1779f22
commit
10ad89594a
@@ -2,10 +2,20 @@
|
||||
#define SQLPARSER_SQLPARSER_WIN_H
|
||||
|
||||
|
||||
#if defined(_WIN32)
|
||||
#define strncasecmp _strnicmp
|
||||
#define strcasecmp _stricmp
|
||||
#if defined(_USRDLL)
|
||||
#if (__cplusplus >= 201703L)
|
||||
#if __has_include("Poco/Data/Data.h")
|
||||
#include "Poco/Data/Data.h"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef Data_API
|
||||
#define SQLParser_API Data_API
|
||||
#ifdef Data_EXPORTS
|
||||
#define SQLParserEXPORTS
|
||||
#endif
|
||||
#else
|
||||
#if defined(_DLL) || defined(_USRDLL)
|
||||
#if defined(SQLParser_EXPORTS)
|
||||
#define SQLParser_API __declspec(dllexport)
|
||||
#else
|
||||
@@ -15,6 +25,12 @@
|
||||
#endif
|
||||
|
||||
|
||||
#if defined(_WIN32)
|
||||
#define strncasecmp _strnicmp
|
||||
#define strcasecmp _stricmp
|
||||
#endif
|
||||
|
||||
|
||||
#if !defined(SQLParser_API)
|
||||
#if defined (__GNUC__) && (__GNUC__ >= 4)
|
||||
#define SQLParser_API __attribute__ ((visibility ("default")))
|
||||
|
||||
Reference in New Issue
Block a user