3 Copyright (C) 1999-2000, Peter Boos <pedib@colorfullife.com>
4 Copyright (C) 2002-2006, Joe Orton <joe@manyfish.co.uk>
6 This library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Library General Public
8 License as published by the Free Software Foundation; either
9 version 2 of the License, or (at your option) any later version.
11 This library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Library General Public License for more details.
16 You should have received a copy of the GNU Library General Public
17 License along with this library; if not, write to the Free
18 Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
22 #if defined(_WIN32) && !defined(WIN32)
28 #define NEON_VERSION "@VERSION@"
29 #define NE_VERSION_MAJOR (@MAJOR@)
30 #define NE_VERSION_MINOR (@MINOR@)
38 #define HAVE_SETSOCKOPT
42 /* Define to enable debugging */
43 #define NE_DEBUGGING 1
45 #define NE_FMT_SIZE_T "u"
46 #define NE_FMT_SSIZE_T "d"
47 #define NE_FMT_OFF_T "ld"
48 #define NE_FMT_NE_OFF_T NE_FMT_OFF_T
50 #ifndef NE_FMT_XML_SIZE
51 #define NE_FMT_XML_SIZE "d"
54 /* needs adjusting for Win64... */
58 /* Win32 uses a underscore, so we use a macro to eliminate that. */
59 #define snprintf _snprintf
60 /* VS2008 has this already defined */
62 #define vsnprintf _vsnprintf
65 #if defined(_MSC_VER) && _MSC_VER >= 1400
66 #define strcasecmp _strcmpi
67 #define strncasecmp _strnicmp
69 #define strcasecmp strcmpi
70 #define strncasecmp strnicmp
73 #define inline __inline
76 #ifndef USE_GETADDRINFO
77 #define in_addr_t unsigned int
80 typedef int socklen_t;