diff options
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/util.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/common/util.h b/src/common/util.h index 5ef3a413d0..4d21f64bc1 100644 --- a/src/common/util.h +++ b/src/common/util.h @@ -24,15 +24,15 @@ #error "It seems your platform does not represent NULL as zero. We can't cope." #endif -#ifdef HAVE_WINSOCK_H +#ifdef MS_WINDOWS +#if (_MSC_VER <= 1300) #include <winsock.h> -#endif -#if _MSC_VER > 1300 +#else #include <winsock2.h> #include <ws2tcpip.h> -#elif defined(_MSC_VER) -#include <winsock.h> #endif +#endif + #if !defined(HAVE_GETTIMEOFDAY) && !defined(HAVE_STRUCT_TIMEVAL_TV_SEC) struct timeval { time_t tv_sec; |