1/* -*- c -*- 2 Win32 config.h 3 Copyright (C) 1999-2000, Peter Boos <pedib@colorfullife.com> 4 Copyright (C) 2002-2006, Joe Orton <joe@manyfish.co.uk> 5 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. 10 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. 15 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, 19 MA 02111-1307, USA 20 21*/ 22#if defined(_WIN32) && !defined(WIN32) 23#define WIN32 24#endif 25 26#ifdef WIN32 27 28#define NEON_VERSION "@VERSION@" 29#define NE_VERSION_MAJOR (@MAJOR@) 30#define NE_VERSION_MINOR (@MINOR@) 31 32#define HAVE_ERRNO_H 33#define HAVE_LIMITS_H 34#define HAVE_STDLIB_H 35#define HAVE_STRING_H 36 37#define HAVE_MEMCPY 38#define HAVE_SETSOCKOPT 39 40#define HAVE_SSPI 41 42/* Define to enable debugging */ 43#define NE_DEBUGGING 1 44 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 49 50#ifndef NE_FMT_XML_SIZE 51#define NE_FMT_XML_SIZE "d" 52#endif 53 54/* needs adjusting for Win64... */ 55#define SIZEOF_INT 4 56#define SIZEOF_LONG 4 57 58/* Win32 uses a underscore, so we use a macro to eliminate that. */ 59#define snprintf _snprintf 60/* VS2008 has this already defined */ 61#if (_MSC_VER < 1500) 62#define vsnprintf _vsnprintf 63#endif 64 65#if defined(_MSC_VER) && _MSC_VER >= 1400 66#define strcasecmp _strcmpi 67#define strncasecmp _strnicmp 68#else 69#define strcasecmp strcmpi 70#define strncasecmp strnicmp 71#endif 72#define ssize_t int 73#define inline __inline 74#define off_t _off_t 75 76#ifndef USE_GETADDRINFO 77#define in_addr_t unsigned int 78#endif 79 80typedef int socklen_t; 81 82#include <io.h> 83#define read _read 84 85#endif 86