5 Author: Pekka Riikonen <priikone@silcnet.org>
7 Copyright (C) 2001 - 2003 Pekka Riikonen
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; version 2 of the License.
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
19 /* Native WIN32 specific includes and definitions. */
28 #define snprintf _snprintf
29 #define vsnprintf _vsnprintf
32 #define strcasecmp stricmp
33 #define strncasecmp strncmp
39 #define DLLAPI __declspec(dllimport)
41 #define DLLAPI /* Nada, we use .DEF */
44 #define DLLAPI /* Nada, we use .DEF */
48 /* Some winsock compatiblity requirements */
50 #define _WIN32_WINNT 0x400
53 #define _WIN32_WINNT 0x400
54 #endif /* _WIN32_WINNT */
55 #if !defined(SO_SYNCHRONOUS_NONALERT)
56 #define SO_SYNCHRONOUS_NONALERT 0x20
58 #if !defined(SO_OPENTYPE)
59 #define SO_OPENTYPE 0x7008
63 #define inline __inline
66 #define sleep(x) Sleep((x) * 1000)