summaryrefslogtreecommitdiff
path: root/zen/win.h
diff options
context:
space:
mode:
Diffstat (limited to 'zen/win.h')
-rw-r--r--zen/win.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/zen/win.h b/zen/win.h
index 121e6a9c..13ecf4e4 100644
--- a/zen/win.h
+++ b/zen/win.h
@@ -7,6 +7,10 @@
#ifndef YAWFWH_YET_ANOTHER_WRAPPER_FOR_WINDOWS_H
#define YAWFWH_YET_ANOTHER_WRAPPER_FOR_WINDOWS_H
+#ifndef _WINSOCKAPI_ //prevent inclusion of winsock.h in windows.h: obsoleted by and conflicting with winsock2.h
+ #define _WINSOCKAPI_
+#endif
+
//------------------------------------------------------
#ifdef __WXMSW__ //we have wxWidgets
#include <wx/msw/wrapwin.h> //includes "windows.h"
bgstack15