diff options
Diffstat (limited to 'Utilities/cmxmlrpc/xmlrpc_config.h.in')
-rw-r--r-- | Utilities/cmxmlrpc/xmlrpc_config.h.in | 41 |
1 files changed, 36 insertions, 5 deletions
diff --git a/Utilities/cmxmlrpc/xmlrpc_config.h.in b/Utilities/cmxmlrpc/xmlrpc_config.h.in index 7e74253..8cf9553 100644 --- a/Utilities/cmxmlrpc/xmlrpc_config.h.in +++ b/Utilities/cmxmlrpc/xmlrpc_config.h.in @@ -35,12 +35,43 @@ We could make 'configure' simply do a trial compile to figure out which one, but for now, this approximation is easier: */ -#ifndef __GNUC__ -#ifndef __inline__ -#ifdef __sgi -#define __inline__ __inline +#ifdef _WIN32 +# define __inline__ __inline #else -#define __inline__ +# ifndef __GNUC__ +# ifndef __inline__ +# ifdef __sgi +# define __inline__ __inline +# else +# define __inline__ +# endif +# endif +# endif #endif + +/* A timeout in milliseconds. */ +typedef unsigned long timeout_t; + +#if !defined(WIN32) && defined(_WIN32) +# define WIN32 #endif +#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() */ + + +__inline BOOL setenv(const char* name, const char* value, int i) +{ + return (SetEnvironmentVariable(name, value) != 0) ? TRUE : FALSE; +} #endif |