2005-02-22 21:08:27 +03:00
|
|
|
/* 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"
|
|
|
|
|
2005-03-01 00:26:20 +03:00
|
|
|
#ifndef __xmlrpc_config_h__
|
|
|
|
#define __xmlrpc_config_h__
|
|
|
|
|
2005-02-22 21:08:27 +03:00
|
|
|
|
|
|
|
#define VA_LIST_IS_ARRAY @VA_LIST_IS_ARRAY_DEFINE@
|
|
|
|
|
2007-11-16 22:06:40 +03:00
|
|
|
#cmakedefine HAS_VA_COPY @HAS_VA_COPY@
|
|
|
|
|
2005-02-22 21:08:27 +03:00
|
|
|
#define HAVE_LIBWWW_SSL @HAVE_LIBWWW_SSL_DEFINE@
|
|
|
|
|
|
|
|
#define ATTR_UNUSED @ATTR_UNUSED@
|
|
|
|
|
2005-04-19 17:52:24 +04:00
|
|
|
#cmakedefine HAVE_UNICODE_WCHAR @HAVE_UNICODE_WCHAR@
|
2005-02-22 21:08:27 +03:00
|
|
|
|
|
|
|
#define DIRECTORY_SEPARATOR "@DIRECTORY_SEPARATOR@"
|
|
|
|
|
2005-03-01 17:07:38 +03:00
|
|
|
#cmakedefine HAVE_PTHREADS @HAVE_PTHREADS@
|
|
|
|
|
2005-02-22 21:08:27 +03:00
|
|
|
/* 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:
|
|
|
|
*/
|
2005-02-24 04:28:21 +03:00
|
|
|
#ifdef _WIN32
|
|
|
|
# define __inline__ __inline
|
2005-02-22 21:08:27 +03:00
|
|
|
#else
|
2005-02-24 04:28:21 +03:00
|
|
|
# ifndef __GNUC__
|
|
|
|
# ifndef __inline__
|
|
|
|
# ifdef __sgi
|
|
|
|
# define __inline__ __inline
|
|
|
|
# else
|
|
|
|
# define __inline__
|
|
|
|
# endif
|
|
|
|
# endif
|
|
|
|
# endif
|
2005-02-22 21:08:27 +03:00
|
|
|
#endif
|
2005-02-24 04:28:21 +03:00
|
|
|
|
|
|
|
/* A timeout in milliseconds. */
|
|
|
|
typedef unsigned long timeout_t;
|
|
|
|
|
|
|
|
#if !defined(WIN32) && defined(_WIN32)
|
|
|
|
# define WIN32
|
2005-02-22 21:08:27 +03:00
|
|
|
#endif
|
2005-02-24 04:28:21 +03:00
|
|
|
#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() */
|
|
|
|
|
|
|
|
|
2005-03-04 00:12:46 +03:00
|
|
|
/*
|
2005-02-24 04:28:21 +03:00
|
|
|
__inline BOOL setenv(const char* name, const char* value, int i)
|
|
|
|
{
|
|
|
|
return (SetEnvironmentVariable(name, value) != 0) ? TRUE : FALSE;
|
|
|
|
}
|
2005-03-04 00:12:46 +03:00
|
|
|
*/
|
2005-02-22 21:08:27 +03:00
|
|
|
#endif
|
2005-03-01 00:26:20 +03:00
|
|
|
|
|
|
|
#endif
|