Commit 713e2358 authored by Pekka Pessi's avatar Pekka Pessi

win32/sofia-sip/su_configure.h: using values from <basetsd.h>

Always defining isize_t, usize_t as size_t on Windows, issize_t as ssize_t.

Note that <limits.h> with _POSIX_ on VC uses 16-bit values for SSIZE_MAX,
for instance.

darcs-hash:20060908124727-65a35-5d0f451b8588059a06bf85419d5f6678c0b629c1.gz
parent 454c82f7
......@@ -104,33 +104,22 @@
#define srandom(x) srand((x))
#define random() rand()
#ifdef _WIN64
#define SU_INTPTR_T __int64
#include <basetsd.h>
#define SOFIA_ISIZE_T size_t
#define SOFIA_ISSIZE_T ssize_t
#define SOFIA_USIZE_T size_t
#define SU_INTPTR_T INTPTR_T
#define SU_INTPTR_T SOFIA_SSIZE_T
#ifndef SIZE_MAX
#define SIZE_MAX (0xffffffffffffffffUL)
#define SIZE_MAX MAXINT_PTR
#endif
#ifndef SSIZE_MAX
#define SSIZE_MAX (0x7fffffffffffffffUL)
#define SSIZE_MAX MAXUINT_PTR
#endif
#define ISIZE_MAX SIZE_MAX
#define ISSIZE_MAX SSIZE_MAX
#define USIZE_MAX SIZE_MAX
#else
#define SU_INTPTR_T __int32
#define SOFIA_ISIZE_T int
#define SOFIA_ISSIZE_T int
#define SOFIA_USIZE_T unsigned
#define SOFIA_SSIZE_T long
#ifndef SIZE_MAX
#define SIZE_MAX (0xffffffffUL)
#endif
#ifndef SSIZE_MAX
#define SSIZE_MAX (0x7fffffffUL)
#endif
#define ISIZE_MAX INT_MAX
#define ISSIZE_MAX INT_MAX
#define USIZE_MAX UINT_MAX
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment