win32: removed duplicate winsock2.h and added WIN32_LEAN_AND_MEAN in Ecore.h

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
This commit is contained in:
Ivan Furs 2017-03-09 16:39:42 +09:00 committed by Jean-Philippe Andre
parent 425a04beb3
commit c1a2c89ac8
2 changed files with 2 additions and 3 deletions

View File

@ -307,7 +307,9 @@
#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>

View 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