"Fossies" - the Fresh Open Source Software Archive

Member "neon-0.31.2/config.hw" (20 Jun 2020, 2498 Bytes) of package /linux/www/neon-0.31.2.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "config.hw": 0.31.1_vs_0.31.2.

    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 "0.31.2"
   29 #define NE_VERSION_MAJOR (0)
   30 #define NE_VERSION_MINOR (31)
   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 NE_HAVE_TS_SSL 1
   43 
   44 /* Define to enable debugging */
   45 #define NE_DEBUGGING 1
   46 
   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
   52 
   53 #ifndef NE_FMT_XML_SIZE
   54 #define NE_FMT_XML_SIZE "d"
   55 #endif
   56 
   57 /* needs adjusting for Win64... */
   58 #define SIZEOF_INT 4
   59 #define SIZEOF_LONG 4
   60 
   61 /* Win32 uses a underscore, so we use a macro to eliminate that. */
   62 #define snprintf            _snprintf
   63 /* VS2008 has this already defined */
   64 #if (_MSC_VER < 1500)
   65 #define vsnprintf           _vsnprintf
   66 #endif
   67 
   68 #if defined(_MSC_VER) && _MSC_VER >= 1400
   69 #define strcasecmp          _strcmpi
   70 #define strncasecmp         _strnicmp
   71 #else
   72 #define strcasecmp          strcmpi
   73 #define strncasecmp         strnicmp
   74 #endif
   75 #if defined(_MSC_VER) && _MSC_VER >= 1300
   76 #define HAVE_STRTOLL
   77 #define strtoll             _strtoi64
   78 #endif
   79 #define ssize_t             int
   80 #define inline                          __inline
   81 #if defined(NE_LFS)
   82 #define lseek64             _lseeki64
   83 #define fstat64             _fstat64
   84 #define stat64              __stat64
   85 #else
   86 #define off_t                           _off_t
   87 #endif
   88 
   89 #ifndef USE_GETADDRINFO
   90 #define in_addr_t                       unsigned int
   91 #endif
   92 
   93 typedef int socklen_t;
   94 
   95 #include <io.h>
   96 #define read _read
   97 
   98 #endif