summaryrefslogtreecommitdiff
path: root/gcc/ada/gsocket.h
diff options
context:
space:
mode:
authorktietz <ktietz@138bc75d-0d04-0410-961f-82ee72b054a4>2010-04-18 10:15:52 +0000
committerktietz <ktietz@138bc75d-0d04-0410-961f-82ee72b054a4>2010-04-18 10:15:52 +0000
commitda203f51d052f6346874885f8ba87611e8f27022 (patch)
treeb762e92cca69787887e20fc9e8d1b255cf0b51b7 /gcc/ada/gsocket.h
parent13e5c49874c6474c2af808d8a6d597d7ae288aaf (diff)
downloadgcc-da203f51d052f6346874885f8ba87611e8f27022.tar.gz
2010-04-18 Ozkan Sezer <sezeroz@gmail.com>
* gsocket.h: Make sure that winsock2.h is included before windows.h. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@158482 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/gsocket.h')
-rw-r--r--gcc/ada/gsocket.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/ada/gsocket.h b/gcc/ada/gsocket.h
index ca016c921c0..a8e6faa2467 100644
--- a/gcc/ada/gsocket.h
+++ b/gcc/ada/gsocket.h
@@ -71,7 +71,6 @@
#elif defined (WINNT)
#define FD_SETSIZE 1024
-#include <windows.h>
#ifdef __MINGW32__
#include <winsock2.h>
@@ -160,6 +159,8 @@
#endif
+#include <windows.h>
+
#elif defined(VMS)
#define FD_SETSIZE 4096
#ifndef IN_RTS