xmlrpc_config.h.in 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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. #define HAVE_LIBWWW_SSL @HAVE_LIBWWW_SSL_DEFINE@
  18. #define ATTR_UNUSED @ATTR_UNUSED@
  19. #cmakedefine HAVE_UNICODE_WCHAR @HAVE_UNICODE_WCHAR@
  20. #define DIRECTORY_SEPARATOR "@DIRECTORY_SEPARATOR@"
  21. #cmakedefine HAVE_PTHREADS @HAVE_PTHREADS@
  22. /* Xmlrpc-c code uses __inline__ to declare functions that should
  23. be compiled as inline code. GNU C recognizes the __inline__ keyword.
  24. Others recognize 'inline' or '__inline' or nothing at all to say
  25. a function should be inlined.
  26. We could make 'configure' simply do a trial compile to figure out
  27. which one, but for now, this approximation is easier:
  28. */
  29. #ifdef _WIN32
  30. # define __inline__ __inline
  31. #else
  32. # ifndef __GNUC__
  33. # ifndef __inline__
  34. # ifdef __sgi
  35. # define __inline__ __inline
  36. # else
  37. # define __inline__
  38. # endif
  39. # endif
  40. # endif
  41. #endif
  42. /* A timeout in milliseconds. */
  43. typedef unsigned long timeout_t;
  44. #if !defined(WIN32) && defined(_WIN32)
  45. # define WIN32
  46. #endif
  47. #if defined(WIN32)
  48. #include <stdio.h>
  49. #include <stdlib.h>
  50. #include <string.h>
  51. #if !defined (vsnprintf)
  52. #define vsnprintf _vsnprintf
  53. #endif
  54. #if !defined (snprintf)
  55. #define snprintf _snprintf
  56. #endif
  57. #include <time.h>
  58. #include <winsock2.h>
  59. #include <direct.h> /* for _chdir() */
  60. /*
  61. __inline BOOL setenv(const char* name, const char* value, int i)
  62. {
  63. return (SetEnvironmentVariable(name, value) != 0) ? TRUE : FALSE;
  64. }
  65. */
  66. #endif
  67. #endif