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 NE_HAVE_TS_SSL 1
44 /* Define to enable debugging */
45 #define NE_DEBUGGING 1
47 #define NE_FMT_SIZE_T "u"
48 #define NE_FMT_SSIZE_T "d"
49 #define NE_FMT_OFF_T "ld"
50 #define NE_FMT_OFF64_T "I64d"
51 #define NE_FMT_NE_OFF_T NE_FMT_OFF_T
53 #ifndef NE_FMT_XML_SIZE
54 #define NE_FMT_XML_SIZE "d"
57 /* needs adjusting for Win64... */
61 /* Win32 uses a underscore, so we use a macro to eliminate that. */
62 #define snprintf _snprintf
63 /* VS2008 has this already defined */
65 #define vsnprintf _vsnprintf
68 #if defined(_MSC_VER) && _MSC_VER >= 1400
69 #define strcasecmp _strcmpi
70 #define strncasecmp _strnicmp
72 #define strcasecmp strcmpi
73 #define strncasecmp strnicmp
75 #if defined(_MSC_VER) && _MSC_VER >= 1300
77 #define strtoll _strtoi64
80 #define inline __inline
82 #define lseek64 _lseeki64
83 #define fstat64 _fstat64
84 #define stat64 __stat64
89 #ifndef USE_GETADDRINFO
90 #define in_addr_t unsigned int
93 typedef int socklen_t;