summaryrefslogtreecommitdiff
path: root/wait.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2016-04-27 22:45:34 -0400
committerJeffrey Walton <noloader@gmail.com>2016-04-27 22:45:34 -0400
commit500c312a587248e9e0f46a195dcb9a843e142dc8 (patch)
tree781593d4067144e10823b383276f21be74ac3d5c /wait.h
parente06b50f5647066548c82e02f81db46f8d6dc4cce (diff)
downloadcryptopp-git-500c312a587248e9e0f46a195dcb9a843e142dc8.tar.gz
Add missing header for Windows 8, Windows Server 2012, and Windows Phone 8
Diffstat (limited to 'wait.h')
-rwxr-xr-x[-rw-r--r--]wait.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/wait.h b/wait.h
index 622257df..298ca684 100644..100755
--- a/wait.h
+++ b/wait.h
@@ -1,14 +1,15 @@
+// wait.h - written and placed in the public domain by Wei Dai
+
#ifndef CRYPTOPP_WAIT_H
#define CRYPTOPP_WAIT_H
#include "config.h"
+#include "cryptlib.h"
+#include "misc.h"
+#include "stdcpp.h"
#ifdef SOCKETS_AVAILABLE
-#include "misc.h"
-#include "cryptlib.h"
-#include <vector>
-
#ifdef USE_WINDOWS_STYLE_SOCKETS
#include <winsock2.h>
#else
@@ -16,6 +17,12 @@
#include <sys/select.h>
#endif
+// For defintions of VOID, PVOID, HANDLE, PHANDLE, etc.
+#if defined(CRYPTOPP_WIN32_AVAILABLE)
+#define WIN32_LEAN_AND_MEAN
+#include <windows.h>
+#endif
+
#include "hrtimer.h"
#if defined(__has_feature)