Fix Cygwin compile due to missing <signal.h>

pull/326/head
Jeffrey Walton 2016-10-01 22:12:08 -04:00
parent 856d3d5508
commit e09d8a2491
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
4 changed files with 14 additions and 2 deletions

View File

@ -690,6 +690,10 @@ NAMESPACE_END
# define THREADS_AVAILABLE
#endif
#if defined(CRYPTOPP_BSD_AVAILABLE) || defined(CRYPTOPP_UNIX_AVAILABLE) || defined(__CYGWIN__)
# define UNIX_SIGNALS_AVAILABLE 1
#endif
#ifdef CRYPTOPP_WIN32_AVAILABLE
# if !defined(WINAPI_FAMILY)
# define HAS_WINTHREADS

View File

@ -690,6 +690,10 @@ NAMESPACE_END
# define THREADS_AVAILABLE
#endif
#if defined(CRYPTOPP_BSD_AVAILABLE) || defined(CRYPTOPP_UNIX_AVAILABLE) || defined(__CYGWIN__)
# define UNIX_SIGNALS_AVAILABLE 1
#endif
#ifdef CRYPTOPP_WIN32_AVAILABLE
# if !defined(WINAPI_FAMILY)
# define HAS_WINTHREADS

View File

@ -9,7 +9,7 @@
#include "config.h"
#if defined(CRYPTOPP_BSD_AVAILABLE) || defined(CRYPTOPP_UNIX_AVAILABLE)
#if defined(UNIX_SIGNALS_AVAILABLE)
# include <signal.h>
#endif
@ -17,7 +17,7 @@ NAMESPACE_BEGIN(CryptoPP)
// ************** Unix and Linux compatibles ***************
#if defined(CRYPTOPP_BSD_AVAILABLE) || defined(CRYPTOPP_UNIX_AVAILABLE) || defined(CRYPTOPP_DOXYGEN_PROCESSING)
#if defined(UNIX_SIGNALS_AVAILABLE) || defined(CRYPTOPP_DOXYGEN_PROCESSING)
//! \brief Signal handler function pointer
//! \details SignalHandlerFn is provided as a stand alone function pointer with external "C" linkage

View File

@ -40,6 +40,10 @@ namespace std {
#include <mutex>
#endif
#if defined(CRYPTOPP_CXX11_RVALUES)
# include <utility>
#endif
#include <cstdlib>
#include <cstddef>
#include <cstring>