Initial commit.
[CMakeLuaTailorHgBridge.git] / CMakeLua / Utilities / cmxmlrpc / xmlrpc_config.h.in
blob9683c1e6949c023c6eaa4d08c05ad509337da544
1 /* xmlrpc_config.h is generated from xmlrpc_config.h.in by 'configure'.
3 This file just uses plain AC_SUBST substitution, the same as
4 Makefile.config. Wherever you see @XXX@, that gets replaced by the
5 value of 'configure' variable XXX.
7 Logical macros are 0 or 1 instead of the more traditional defined and
8 undefined. That's so we can distinguish when compiling code between
9 "false" and some problem with the code.
13 /* We hope to replace xmlrpc_amconfig.h some day with something that
14 doesn't require a whole special set of software to build, to make
15 xmlrpc-c approachable by dumber developers.
17 #include "xmlrpc_amconfig.h"
19 #ifndef __xmlrpc_config_h__
20 #define __xmlrpc_config_h__
23 #define VA_LIST_IS_ARRAY @VA_LIST_IS_ARRAY_DEFINE@
25 #cmakedefine HAS_VA_COPY @HAS_VA_COPY@
27 #define HAVE_LIBWWW_SSL @HAVE_LIBWWW_SSL_DEFINE@
29 #define ATTR_UNUSED @ATTR_UNUSED@
31 #cmakedefine HAVE_UNICODE_WCHAR @HAVE_UNICODE_WCHAR@
33 #define DIRECTORY_SEPARATOR "@DIRECTORY_SEPARATOR@"
35 #cmakedefine HAVE_PTHREADS @HAVE_PTHREADS@
37 /* Xmlrpc-c code uses __inline__ to declare functions that should
38 be compiled as inline code. GNU C recognizes the __inline__ keyword.
39 Others recognize 'inline' or '__inline' or nothing at all to say
40 a function should be inlined.
42 We could make 'configure' simply do a trial compile to figure out
43 which one, but for now, this approximation is easier:
45 #ifdef _WIN32
46 # define __inline__ __inline
47 #else
48 # ifndef __GNUC__
49 # ifndef __inline__
50 # ifdef __sgi
51 # define __inline__ __inline
52 # else
53 # define __inline__
54 # endif
55 # endif
56 # endif
57 #endif
59 /* A timeout in milliseconds. */
60 typedef unsigned long timeout_t;
62 #if !defined(WIN32) && defined(_WIN32)
63 # define WIN32
64 #endif
65 #if defined(WIN32)
66 #include <stdio.h>
67 #include <stdlib.h>
68 #include <string.h>
69 #if !defined (vsnprintf)
70 #define vsnprintf _vsnprintf
71 #endif
72 #if !defined (snprintf)
73 #define snprintf _snprintf
74 #endif
75 #include <time.h>
76 #include <winsock2.h>
77 #include <direct.h> /* for _chdir() */
81 __inline BOOL setenv(const char* name, const char* value, int i)
83 return (SetEnvironmentVariable(name, value) != 0) ? TRUE : FALSE;
86 #endif
88 #endif