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; either version 2 of the License, or
12 (at your option) any later version.
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
20 /* Native WIN32 specific includes and definitions. */
29 #define snprintf _snprintf
30 #define vsnprintf _vsnprintf
33 #define strcasecmp stricmp
34 #define strncasecmp strncmp
40 #define DLLAPI __declspec(dllimport)
42 #define DLLAPI /* Nada, we use .DEF */
45 #define DLLAPI /* Nada, we use .DEF */
49 /* Some winsock compatiblity requirements */
51 #define _WIN32_WINNT 0x400
54 #define _WIN32_WINNT 0x400
55 #endif /* _WIN32_WINNT */
56 #if !defined(SO_SYNCHRONOUS_NONALERT)
57 #define SO_SYNCHRONOUS_NONALERT 0x20
59 #if !defined(SO_OPENTYPE)
60 #define SO_OPENTYPE 0x7008
64 #define inline __inline
67 #define sleep(x) Sleep((x) * 1000)