freeswitch/libs/xmlrpc-c/xmlrpc_config.h.in
Michael Jerris 3abb7730b2 add xmlrpc-c 1.03.14 to in tree libs
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3772 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-12-21 03:57:49 +00:00

51 lines
1.6 KiB
C

/* 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"
#define VA_LIST_IS_ARRAY @VA_LIST_IS_ARRAY_DEFINE@
#define HAVE_LIBWWW_SSL @HAVE_LIBWWW_SSL_DEFINE@
#define ATTR_UNUSED @ATTR_UNUSED@
#define HAVE_UNICODE_WCHAR @HAVE_UNICODE_WCHAR_DEFINE@
/* This is a hack in the name of stability -- saves modifying a lot of code */
#if !HAVE_UNICODE_WCHAR
#undef HAVE_UNICODE_WCHAR
#endif
#define DIRECTORY_SEPARATOR "@DIRECTORY_SEPARATOR@"
/* 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:
*/
#if (!defined(__GNUC__))
#if (!defined(__inline__))
#if (defined(__sgi) || defined(_AIX))
#define __inline__ __inline
#else
#define __inline__
#endif
#endif
#endif