1
0

xmlrpc_config.h.in 2.1 KB

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