Windows CE specific adjustment
authorYang Tse <yangsita@gmail.com>
Tue, 22 Mar 2011 13:28:47 +0000 (14:28 +0100)
committerYang Tse <yangsita@gmail.com>
Tue, 22 Mar 2011 13:28:47 +0000 (14:28 +0100)
All versions of Windows CE support Winsock 1.1

ares.h

diff --git a/ares.h b/ares.h
index 9456a14..2b38303 100644 (file)
--- a/ares.h
+++ b/ares.h
@@ -1,6 +1,6 @@
 
 /* Copyright 1998, 2009 by the Massachusetts Institute of Technology.
- * Copyright (C) 2007-2010 by Daniel Stenberg
+ * Copyright (C) 2007-2011 by Daniel Stenberg
  *
  * Permission to use, copy, modify, and distribute this
  * software and its documentation for any purpose and without
 #  include <netinet/in.h>
 #  include <sys/socket.h>
 #  include <tcp.h>
+#elif defined(_WIN32_WCE)
+#  ifndef WIN32_LEAN_AND_MEAN
+#    define WIN32_LEAN_AND_MEAN
+#  endif
+#  include <windows.h>
+#  include <winsock.h>
 #elif defined(WIN32)
 #  ifndef WIN32_LEAN_AND_MEAN
 #    define WIN32_LEAN_AND_MEAN