win32: removed duplicate winsock2.h and added WIN32_LEAN_AND_MEAN in Ecore.h
authorIvan Furs <i.furs@samsung.com>
Thu, 9 Mar 2017 07:39:42 +0000 (16:39 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Thu, 9 Mar 2017 08:39:39 +0000 (17:39 +0900)
Summary: winsock2.h is dublicate in src/lib/ecore/ecore_main.c

Reviewers: NikaWhite, an.kroitor, cedric, raster, rimmed, vtorri

Subscribers: cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D4688

src/lib/ecore/Ecore.h
src/lib/ecore/ecore_main.c

index 99e43e1..58b9e3c 100644 (file)
 #endif /* ! _WIN32 */
 
 #ifdef _WIN32
+# define WIN32_LEAN_AND_MEAN
 # include <winsock2.h>
+# undef WIN32_LEAN_AND_MEAN
 #elif defined (__FreeBSD__) || defined (__OpenBSD__)
 # include <sys/select.h>
 # include <signal.h>
index 125c886..da573cc 100644 (file)
@@ -5,9 +5,6 @@
 #define EINA_SLSTR_INTERNAL
 
 #ifdef _WIN32
-# define WIN32_LEAN_AND_MEAN
-# include <winsock2.h>
-# undef WIN32_LEAN_AND_MEAN
 # ifndef USER_TIMER_MINIMUM
 #  define USER_TIMER_MINIMUM 0x0a
 # endif