X-Git-Url: http://git.silcnet.org/gitweb/?p=silc.git;a=blobdiff_plain;f=includes%2Fsilcwin32.h;h=e670a75f96950223a118987606e93e7d1abab982;hp=88e103deacf1cc512d5838017cc9ef8e2417807e;hb=382d15d447b7a95390decfa783836ae4fe255b3d;hpb=d47a87b03b846e2333ef57b2c0d81f1644992964 diff --git a/includes/silcwin32.h b/includes/silcwin32.h index 88e103de..e670a75f 100644 --- a/includes/silcwin32.h +++ b/includes/silcwin32.h @@ -30,7 +30,7 @@ #define vsnprintf _vsnprintf #ifdef WIN32 -#define strcasecmp strcmp +#define strcasecmp stricmp #define strncasecmp strncmp #endif @@ -42,6 +42,20 @@ #endif #endif +# Some winsock compatiblity requirements +#ifndef _WIN32_WINNT +#define _WIN32_WINNT 0x400 +#else +#undef _WIN32_WINNT +#define _WIN32_WINNT 0x400 +#endif /* _WIN32_WINNT */ +#if !defined(SO_SYNCHRONOUS_NONALERT) +#define SO_SYNCHRONOUS_NONALERT 0x20 +#endif +#if !defined(SO_OPENTYPE) +#define SO_OPENTYPE 0x7008 +#endif + #undef inline #define inline __inline