mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-28 11:31:53 +01:00
- added GH #445: Add flag to force POCO to preserve manually #defined target Windows versions
- fixed SQLite and MySQL broken builds
This commit is contained in:
@@ -247,17 +247,17 @@ public:
|
||||
virtual void bind(std::size_t pos, const std::list<std::string>& val, Direction dir = PD_IN);
|
||||
/// Binds a string list.
|
||||
|
||||
virtual void bind(std::size_t pos, const UTF16String& val, Direction dir = PD_IN) = 0;
|
||||
/// Binds a string.
|
||||
virtual void bind(std::size_t pos, const UTF16String& val, Direction dir = PD_IN);
|
||||
/// Binds a UTF-16 Unicode string.
|
||||
|
||||
virtual void bind(std::size_t pos, const std::vector<UTF16String>& val, Direction dir = PD_IN);
|
||||
/// Binds a string vector.
|
||||
/// Binds a UTF-16 Unicode string vector.
|
||||
|
||||
virtual void bind(std::size_t pos, const std::deque<UTF16String>& val, Direction dir = PD_IN);
|
||||
/// Binds a string deque.
|
||||
/// Binds a UTF-16 Unicode string deque.
|
||||
|
||||
virtual void bind(std::size_t pos, const std::list<UTF16String>& val, Direction dir = PD_IN);
|
||||
/// Binds a string list.
|
||||
/// Binds a UTF-16 Unicode string list.
|
||||
|
||||
virtual void bind(std::size_t pos, const BLOB& val, Direction dir = PD_IN) = 0;
|
||||
/// Binds a BLOB.
|
||||
|
||||
@@ -234,17 +234,17 @@ public:
|
||||
virtual bool extract(std::size_t pos, std::list<std::string>& val);
|
||||
/// Extracts a string list.
|
||||
|
||||
virtual bool extract(std::size_t pos, UTF16String& val) = 0;
|
||||
/// Extracts a string. Returns false if null was received.
|
||||
virtual bool extract(std::size_t pos, UTF16String& val);
|
||||
/// Extracts a UTF16String. Returns false if null was received.
|
||||
|
||||
virtual bool extract(std::size_t pos, std::vector<UTF16String>& val);
|
||||
/// Extracts a string vector.
|
||||
/// Extracts a UTF16String vector.
|
||||
|
||||
virtual bool extract(std::size_t pos, std::deque<UTF16String>& val);
|
||||
/// Extracts a string deque.
|
||||
/// Extracts a UTF16String deque.
|
||||
|
||||
virtual bool extract(std::size_t pos, std::list<UTF16String>& val);
|
||||
/// Extracts a string list.
|
||||
/// Extracts a UTF16String list.
|
||||
|
||||
virtual bool extract(std::size_t pos, BLOB& val) = 0;
|
||||
/// Extracts a BLOB. Returns false if null was received.
|
||||
|
||||
@@ -240,17 +240,17 @@ public:
|
||||
virtual void prepare(std::size_t pos, const std::list<std::string>& val);
|
||||
/// Prepares a character list.
|
||||
|
||||
virtual void prepare(std::size_t pos, const UTF16String&) = 0;
|
||||
/// Prepares a string.
|
||||
virtual void prepare(std::size_t pos, const UTF16String&);
|
||||
/// Prepares a UTF16String.
|
||||
|
||||
virtual void prepare(std::size_t pos, const std::vector<UTF16String>& val);
|
||||
/// Prepares a string vector.
|
||||
/// Prepares a UTF16String vector.
|
||||
|
||||
virtual void prepare(std::size_t pos, const std::deque<UTF16String>& val);
|
||||
/// Prepares a string deque.
|
||||
/// Prepares a UTF16String deque.
|
||||
|
||||
virtual void prepare(std::size_t pos, const std::list<UTF16String>& val);
|
||||
/// Prepares a string list.
|
||||
/// Prepares a UTF16String list.
|
||||
|
||||
virtual void prepare(std::size_t pos, const BLOB&) = 0;
|
||||
/// Prepares a BLOB.
|
||||
|
||||
@@ -292,6 +292,12 @@ void AbstractBinder::bind(std::size_t pos, const std::list<std::string>& val, Di
|
||||
}
|
||||
|
||||
|
||||
void AbstractBinder::bind(std::size_t pos, const UTF16String& val, Direction dir)
|
||||
{
|
||||
throw NotImplementedException("UTF16String binder must be implemented.");
|
||||
}
|
||||
|
||||
|
||||
void AbstractBinder::bind(std::size_t pos, const std::vector<UTF16String>& val, Direction dir)
|
||||
{
|
||||
throw NotImplementedException("std::vector binder must be implemented.");
|
||||
|
||||
@@ -286,21 +286,27 @@ bool AbstractExtractor::extract(std::size_t pos, std::list<std::string>& val)
|
||||
}
|
||||
|
||||
|
||||
bool AbstractExtractor::extract(std::size_t pos, UTF16String& val)
|
||||
{
|
||||
throw NotImplementedException("UTF16String extractor must be implemented.");
|
||||
}
|
||||
|
||||
|
||||
bool AbstractExtractor::extract(std::size_t pos, std::vector<UTF16String>& val)
|
||||
{
|
||||
throw NotImplementedException("std::vector extractor must be implemented.");
|
||||
throw NotImplementedException("std::vector<UTF16String> extractor must be implemented.");
|
||||
}
|
||||
|
||||
|
||||
bool AbstractExtractor::extract(std::size_t pos, std::deque<UTF16String>& val)
|
||||
{
|
||||
throw NotImplementedException("std::deque extractor must be implemented.");
|
||||
throw NotImplementedException("std::deque<UTF16String> extractor must be implemented.");
|
||||
}
|
||||
|
||||
|
||||
bool AbstractExtractor::extract(std::size_t pos, std::list<UTF16String>& val)
|
||||
{
|
||||
throw NotImplementedException("std::list extractor must be implemented.");
|
||||
throw NotImplementedException("std::list<UTF16String> extractor must be implemented.");
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -287,21 +287,27 @@ void AbstractPreparator::prepare(std::size_t pos, const std::list<std::string>&
|
||||
}
|
||||
|
||||
|
||||
void AbstractPreparator::prepare(std::size_t pos, const UTF16String& val)
|
||||
{
|
||||
throw NotImplementedException("UTF16String preparator must be implemented.");
|
||||
}
|
||||
|
||||
|
||||
void AbstractPreparator::prepare(std::size_t pos, const std::vector<UTF16String>& val)
|
||||
{
|
||||
throw NotImplementedException("std::vector preparator must be implemented.");
|
||||
throw NotImplementedException("std::vector<UTF16String> preparator must be implemented.");
|
||||
}
|
||||
|
||||
|
||||
void AbstractPreparator::prepare(std::size_t pos, const std::deque<UTF16String>& val)
|
||||
{
|
||||
throw NotImplementedException("std::deque preparator must be implemented.");
|
||||
throw NotImplementedException("std::deque<UTF16String> preparator must be implemented.");
|
||||
}
|
||||
|
||||
|
||||
void AbstractPreparator::prepare(std::size_t pos, const std::list<UTF16String>& val)
|
||||
{
|
||||
throw NotImplementedException("std::list preparator must be implemented.");
|
||||
throw NotImplementedException("std::list<UTF16String> preparator must be implemented.");
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
#include "Poco/UnWindows.h"
|
||||
|
||||
|
||||
#ifndef POCO_FORCE_MIN_WINDOWS_OS_SUPPORT
|
||||
// Determine the real version.
|
||||
// This setting can be forced from UnWindows.h
|
||||
#if defined (_WIN32_WINNT_WINBLUE)
|
||||
@@ -127,7 +128,7 @@
|
||||
#endif
|
||||
#define NTDDI_VERSION 0x05010100
|
||||
#endif
|
||||
|
||||
#endif // POCO_FORCE_MIN_WINDOWS_OS_SUPPORT
|
||||
|
||||
#if defined(_MSC_VER) && !defined(POCO_MSVC_SECURE_WARNINGS) && !defined(_CRT_SECURE_NO_DEPRECATE)
|
||||
#define _CRT_SECURE_NO_DEPRECATE
|
||||
|
||||
@@ -57,6 +57,7 @@
|
||||
// the header file that contains the definition for conditional
|
||||
// definitions.) For more information, see SdkDdkVer.h.
|
||||
|
||||
|
||||
#if defined(_WIN32_WINNT)
|
||||
#if (_WIN32_WINNT < 0x0501)
|
||||
#error Unsupported Windows version.
|
||||
@@ -68,8 +69,9 @@
|
||||
#elif !defined(_WIN32_WINNT)
|
||||
// Define minimum supported version.
|
||||
// This can be changed, if needed.
|
||||
// Otherwise, the Platform_WIN32.h will do
|
||||
// its best to determine the appropriate values
|
||||
// If allowed (see POCO_MIN_WINDOWS_OS_SUPPORT
|
||||
// below), Platform_WIN32.h will do its
|
||||
// best to determine the appropriate values
|
||||
// and may redefine these. See Platform_WIN32.h
|
||||
// for details.
|
||||
#define _WIN32_WINNT 0x0501
|
||||
@@ -77,6 +79,12 @@
|
||||
#endif
|
||||
|
||||
|
||||
// To prevent Platform_WIN32.h to modify version defines,
|
||||
// uncomment this, otherwise versions will be automatically
|
||||
// discovered in Platform_WIN32.h.
|
||||
// #define POCO_FORCE_MIN_WINDOWS_OS_SUPPORT
|
||||
|
||||
|
||||
#include <windows.h>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user