diff options
author | Nick Mathewson <nickm@torproject.org> | 2010-05-24 12:17:43 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2010-05-24 12:17:43 -0400 |
commit | 2dce01982a46ee2558dd7a8fb5f8ac1b86d900bf (patch) | |
tree | c484340347eb0e5684117d84f2eedfcfa20724d0 /src/common/compat.h | |
parent | 9563b0d508e3fe5d5af3f85f659a110175a8e156 (diff) | |
parent | 7dcf88e69bdb3786ebac90f2609b9e190b279a4f (diff) | |
download | tor-2dce01982a46ee2558dd7a8fb5f8ac1b86d900bf.tar.gz tor-2dce01982a46ee2558dd7a8fb5f8ac1b86d900bf.zip |
Merge branch 'port_to_wince'
Diffstat (limited to 'src/common/compat.h')
-rw-r--r-- | src/common/compat.h | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/src/common/compat.h b/src/common/compat.h index dbadd60509..7d59501e2b 100644 --- a/src/common/compat.h +++ b/src/common/compat.h @@ -51,6 +51,22 @@ #include <netinet6/in6.h> #endif +#if defined (WINCE) +#include <fcntl.h> +#include <io.h> +#include <math.h> +#include <projects.h> +#define snprintf _snprintf +/* this is not exported as W .... */ +#define SHGetPathFromIDListW SHGetPathFromIDList +/* wcecompat has vasprintf */ +#define HAVE_VASPRINTF +/* no service here */ +#ifdef NT_SERVICE +#undef NT_SERVICE +#endif +#endif // WINCE + #ifndef NULL_REP_IS_ZERO_BYTES #error "It seems your platform does not represent NULL as zero. We can't cope." #endif @@ -177,8 +193,8 @@ extern INLINE double U64_TO_DBL(uint64_t x) { /* ===== String compatibility */ #ifdef MS_WINDOWS /* Windows names string functions differently from most other platforms. */ -#define strncasecmp strnicmp -#define strcasecmp stricmp +#define strncasecmp _strnicmp +#define strcasecmp _stricmp #endif #ifndef HAVE_STRLCAT size_t strlcat(char *dst, const char *src, size_t siz) ATTR_NONNULL((1,2)); |