Commit 5e547ba2 authored by Pekka Pessi's avatar Pekka Pessi

win32/sofia-sip/su_configure.h: fixed SU_INTPTR_T definition. Defining...

win32/sofia-sip/su_configure.h: fixed SU_INTPTR_T definition. Defining SIZE_MAX and SSIZE_MAX if needed.

darcs-hash:20060907125122-65a35-6003c18b47d6451bb4dbc6a2edaf069f012cadfd.gz
parent f1fb7889
......@@ -65,8 +65,6 @@
#define su_inline static __inline
#define SU_HAVE_INLINE (1)
#define SU_INTPTR_T size_t
#define SU_S64_T __int64
#define SU_U64_T unsigned __int64
#define SU_S32_T __int32
......@@ -107,17 +105,31 @@
#define random() rand()
#ifdef _WIN64
#define SU_INTPTR_T __int64
#define SOFIA_ISIZE_T size_t
#define SOFIA_ISSIZE_T ssize_t
#define SOFIA_USIZE_T size_t
#ifndef SIZE_MAX
#define SIZE_MAX (0xffffffffffffffffUL)
#endif
#ifndef SSIZE_MAX
#define SSIZE_MAX (0x7fffffffffffffffUL)
#endif
#define ISIZE_MAX SIZE_MAX
#define ISSIZE_MAX SSIZE_MAX
#define USIZE_MAX USIZE_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
......
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