X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=includes%2Fsilcwin32.h;h=e670a75f96950223a118987606e93e7d1abab982;hb=382d15d447b7a95390decfa783836ae4fe255b3d;hp=7871654e58a4761509b2f54b69c051c0c748fa07;hpb=e5d8d3db6caa344b3d419b884556c21b15e7d123;p=silc.git diff --git a/includes/silcwin32.h b/includes/silcwin32.h index 7871654e..e670a75f 100644 --- a/includes/silcwin32.h +++ b/includes/silcwin32.h @@ -30,10 +30,32 @@ #define vsnprintf _vsnprintf #ifdef WIN32 -#define strcasecmp strcmp +#define strcasecmp stricmp #define strncasecmp strncmp #endif +#ifdef WIN32 +#ifndef DLL +#define DLLAPI __declspec(dllimport) +#else +#define DLLAPI // Nada, we use .DEF +#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