5 Author: Pekka Riikonen <priikone@silcnet.org>
7 Copyright (C) 2001 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
39 #define DLLAPI __declspec(dllimport)
41 #define DLLAPI // Nada, we use .DEF
45 # Some winsock compatiblity requirements
47 #define _WIN32_WINNT 0x400
50 #define _WIN32_WINNT 0x400
51 #endif /* _WIN32_WINNT */
52 #if !defined(SO_SYNCHRONOUS_NONALERT)
53 #define SO_SYNCHRONOUS_NONALERT 0x20
55 #if !defined(SO_OPENTYPE)
56 #define SO_OPENTYPE 0x7008
60 #define inline __inline
63 #define sleep(x) Sleep((x) * 1000)