3 /* From xmlrpc_amconfig.h */
5 /* Define to `unsigned' if <sys/types.h> doesn't define. */
8 /* Define if you have the setgroups function. */
9 /* #undef HAVE_SETGROUPS */
11 /* #undef HAVE_ASPRINTF */
13 /* Define if you have the wcsncmp function. */
14 #define HAVE_WCSNCMP 1
16 /* Define if you have the <stdarg.h> header file. */
17 #define HAVE_STDARG_H 1
19 #define HAVE_SYS_FILIO_H 0
21 #define HAVE_SYS_IOCTL_H 0
23 /* Define if you have the <wchar.h> header file. */
24 #define HAVE_WCHAR_H 1
26 /* Define if you have the socket library (-lsocket). */
27 /* #undef HAVE_LIBSOCKET */
30 #define PACKAGE "xmlrpc-c"
33 /* Win32 version of xmlrpc_config.h
35 Logical macros are 0 or 1 instead of the more traditional defined and
36 undefined. That's so we can distinguish when compiling code between
37 "false" and some problem with the code.
40 #define _CRT_SECURE_NO_DEPRECATE
42 /* Define if va_list is actually an array. */
43 #define VA_LIST_IS_ARRAY 0
45 /* Define if we're using a copy of libwww with built-in SSL support. */
46 #define HAVE_LIBWWW_SSL 0
48 /* Used to mark unused variables under GCC... */
51 #define HAVE_UNICODE_WCHAR
53 #define DIRECTORY_SEPARATOR "\\"
56 /* Windows-specific includes. */
61 #if !defined (vsnprintf)
62 #define vsnprintf _vsnprintf
64 #if !defined (snprintf)
65 #define snprintf _snprintf
74 #include <direct.h> /* for _chdir() */
76 /* We are linking against the multithreaded versions
77 of the Microsoft runtimes - this makes gmtime
78 equiv to gmtime_r in that Windows gmtime is threadsafe
80 #if !defined (gmtime_r)
81 static struct tm* gmtime_r(const time_t *timep, struct tm* result)
85 local = gmtime(timep);
86 memcpy(result,local,sizeof(struct tm));
93 typedef unsigned int socklen_t;
98 typedef signed char int8_t;
101 typedef unsigned char uint8_t;
104 typedef signed short int16_t;
107 typedef unsigned short uint16_t;
110 typedef signed int int32_t;
113 typedef unsigned int uint32_t;
116 typedef __int64 int64_t;
119 typedef unsigned __int64 uint64_t;
122 #define __inline__ __inline
124 #define HAVE_SETENV 1
125 __inline BOOL setenv(const char* name, const char* value, int i)
127 return (SetEnvironmentVariable(name, value) != 0) ? TRUE : FALSE;
130 #define strcasecmp(a,b) stricmp((a),(b))