config.hw 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. /* -*- c -*-
  2. Win32 config.h
  3. Copyright (C) 1999-2000, Peter Boos <[email protected]>
  4. Copyright (C) 2002-2006, Joe Orton <[email protected]>
  5. This library is free software; you can redistribute it and/or
  6. modify it under the terms of the GNU Library General Public
  7. License as published by the Free Software Foundation; either
  8. version 2 of the License, or (at your option) any later version.
  9. This library is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. Library General Public License for more details.
  13. You should have received a copy of the GNU Library General Public
  14. License along with this library; if not, write to the Free
  15. Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
  16. MA 02111-1307, USA
  17. */
  18. #if defined(_WIN32) && !defined(WIN32)
  19. #define WIN32
  20. #endif
  21. #ifdef WIN32
  22. #define NEON_VERSION "0.31.0"
  23. #define NE_VERSION_MAJOR (0)
  24. #define NE_VERSION_MINOR (31)
  25. #define HAVE_ERRNO_H
  26. #define HAVE_LIMITS_H
  27. #define HAVE_STDLIB_H
  28. #define HAVE_STRING_H
  29. #define HAVE_MEMCPY
  30. #define HAVE_SETSOCKOPT
  31. #define HAVE_SSPI
  32. #define NE_HAVE_TS_SSL 1
  33. /* Define to enable debugging */
  34. #define NE_DEBUGGING 1
  35. #define NE_FMT_SIZE_T "u"
  36. #define NE_FMT_SSIZE_T "d"
  37. #define NE_FMT_OFF_T "ld"
  38. #define NE_FMT_OFF64_T "I64d"
  39. #define NE_FMT_NE_OFF_T NE_FMT_OFF_T
  40. #ifndef NE_FMT_XML_SIZE
  41. #define NE_FMT_XML_SIZE "d"
  42. #endif
  43. /* needs adjusting for Win64... */
  44. #define SIZEOF_INT 4
  45. #define SIZEOF_LONG 4
  46. /* Win32 uses a underscore, so we use a macro to eliminate that. */
  47. #define snprintf _snprintf
  48. /* VS2008 has this already defined */
  49. #if (_MSC_VER < 1500)
  50. #define vsnprintf _vsnprintf
  51. #endif
  52. #if defined(_MSC_VER) && _MSC_VER >= 1400
  53. #define strcasecmp _strcmpi
  54. #define strncasecmp _strnicmp
  55. #else
  56. #define strcasecmp strcmpi
  57. #define strncasecmp strnicmp
  58. #endif
  59. #if defined(_MSC_VER) && _MSC_VER >= 1300
  60. #define HAVE_STRTOLL
  61. #define strtoll _strtoi64
  62. #endif
  63. #define ssize_t int
  64. #define inline __inline
  65. #if defined(NE_LFS)
  66. #define lseek64 _lseeki64
  67. #define fstat64 _fstat64
  68. #define stat64 __stat64
  69. #else
  70. #define off_t _off_t
  71. #endif
  72. #ifndef USE_GETADDRINFO
  73. #define in_addr_t unsigned int
  74. #endif
  75. typedef int socklen_t;
  76. #include <io.h>
  77. #define read _read
  78. #endif