Add guard for producing PocoDoc without error on a non Windows platform

This commit is contained in:
zosrothko 2018-05-04 14:17:49 +02:00
parent cb3c31b4c6
commit 4079cdcdc8
4 changed files with 9 additions and 1 deletions

View File

@ -19,12 +19,14 @@
#include "Poco/Net/NetSSL.h"
#if defined(POCO_OS_FAMILY_WINDOWS)
#include <windows.h>
#include <wincrypt.h>
#ifndef SECURITY_WIN32
#define SECURITY_WIN32
#endif
#include <sspi.h>
#endif
#endif
namespace Poco {

View File

@ -24,6 +24,7 @@
#include "Poco/AutoPtr.h"
#include "Poco/Mutex.h"
#include <vector>
#if defined(POCO_OS_FAMILY_WINDOWS)
#include <windows.h>
#include <wincrypt.h>
#include <schannel.h>
@ -32,6 +33,7 @@
#endif
#include <security.h>
#include <sspi.h>
#endif
namespace Poco {

View File

@ -27,6 +27,7 @@
#include "Poco/Util/AbstractConfiguration.h"
#include "Poco/BasicEvent.h"
#include "Poco/SharedPtr.h"
#if defined(POCO_OS_FAMILY_WINDOWS)
#include <wincrypt.h>
#include <schannel.h>
#ifndef SECURITY_WIN32
@ -34,6 +35,7 @@
#endif
#include <security.h>
#include <sspi.h>
#endif
namespace Poco {

View File

@ -22,7 +22,9 @@
#include "Poco/DateTime.h"
#include <set>
#include <istream>
#if defined(POCO_OS_FAMILY_WINDOWS)
#include <wincrypt.h>
#endif
namespace Poco {