win32_config.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #ifndef XMLRPC_C_CONFIG_H_INCLUDED
  2. #define XMLRPC_C_CONFIG_H_INCLUDED
  3. /* This file, part of XML-RPC For C/C++, is meant to
  4. define characteristics of this particular installation
  5. that the other <xmlrpc-c/...> header files need in
  6. order to compile correctly when #included in Xmlrpc-c
  7. user code.
  8. Those header files #include this one.
  9. This file was created by a make rule.
  10. */
  11. #define XMLRPC_HAVE_WCHAR 1
  12. #ifdef WIN32
  13. /* SOCKET is a type defined by <winsock.h>. Anyone who
  14. uses XMLRPC_SOCKET on a WIN32 system must #include
  15. <winsock.h>
  16. */
  17. #define XMLRPC_SOCKET SOCKET
  18. #define XMLRPC_HAVE_TIMEVAL 0
  19. #define XMLRPC_HAVE_TIMESPEC 0
  20. #define XMLRPC_HAVE_PTHREAD 0
  21. #else
  22. #define XMLRPC_SOCKET int
  23. #define XMLRPC_HAVE_TIMEVAL 1
  24. #define XMLRPC_HAVE_TIMESPEC 1
  25. #define XMLRPC_HAVE_PTHREAD 1
  26. #endif
  27. #if defined(_MSC_VER)
  28. /* Newer MSVC has long long, but MSVC 6 does not */
  29. #define XMLRPC_INT64 __int64
  30. #define XMLRPC_INT32 __int32
  31. #define XMLRPC_PRId64 PRId64
  32. #else
  33. #define XMLRPC_INT64 long long
  34. #define XMLRPC_INT32 int
  35. #define XMLRPC_PRId64 "I64d"
  36. #endif
  37. #endif