summaryrefslogtreecommitdiffstats
path: root/Utilities/cmxmlrpc/xmlrpc_config.h.in
blob: 9683c1e6949c023c6eaa4d08c05ad509337da544 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
/* xmlrpc_config.h is generated from xmlrpc_config.h.in by 'configure'.

   This file just uses plain AC_SUBST substitution, the same as
   Makefile.config.  Wherever you see @XXX@, that gets replaced by the
   value of 'configure' variable XXX.

   Logical macros are 0 or 1 instead of the more traditional defined and
   undefined.  That's so we can distinguish when compiling code between
   "false" and some problem with the code.
*/


/* We hope to replace xmlrpc_amconfig.h some day with something that 
   doesn't require a whole special set of software to build, to make
   xmlrpc-c approachable by dumber developers.
*/
#include "xmlrpc_amconfig.h"

#ifndef __xmlrpc_config_h__
#define __xmlrpc_config_h__


#define VA_LIST_IS_ARRAY @VA_LIST_IS_ARRAY_DEFINE@

#cmakedefine HAS_VA_COPY @HAS_VA_COPY@

#define HAVE_LIBWWW_SSL @HAVE_LIBWWW_SSL_DEFINE@

#define ATTR_UNUSED @ATTR_UNUSED@

#cmakedefine HAVE_UNICODE_WCHAR @HAVE_UNICODE_WCHAR@

#define DIRECTORY_SEPARATOR "@DIRECTORY_SEPARATOR@"

#cmakedefine HAVE_PTHREADS @HAVE_PTHREADS@

/*  Xmlrpc-c code uses __inline__ to declare functions that should
    be compiled as inline code.  GNU C recognizes the __inline__ keyword.
    Others recognize 'inline' or '__inline' or nothing at all to say
    a function should be inlined.

    We could make 'configure' simply do a trial compile to figure out
    which one, but for now, this approximation is easier:
*/
#ifdef _WIN32
# define __inline__ __inline
#else
# ifndef __GNUC__
#  ifndef __inline__
#   ifdef __sgi
#    define __inline__ __inline
#   else
#    define __inline__
#   endif
#  endif
# endif
#endif

/* A timeout in milliseconds. */
typedef unsigned long timeout_t;

#if !defined(WIN32) && defined(_WIN32)
#  define WIN32
#endif
#if defined(WIN32)
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
  #if !defined (vsnprintf)
#define vsnprintf _vsnprintf
  #endif
  #if !defined (snprintf)
#define snprintf _snprintf
  #endif
#include <time.h>
#include <winsock2.h>
#include <direct.h>  /* for _chdir() */


/*
__inline BOOL setenv(const char* name, const char* value, int i) 
{
  return (SetEnvironmentVariable(name, value) != 0) ? TRUE : FALSE;
}
*/
#endif

#endif