diff options
author | Kurt Zenker <kz@openoffice.org> | 2009-09-10 22:38:33 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2009-09-10 22:38:33 +0000 |
commit | 49749239ca71441a4a3b404771617e4c8d2a0886 (patch) | |
tree | a9645bc86afb2d5d46579ba3d56fa00278875ee9 /sal | |
parent | b76cb86eaa0aec1d02c5ff29c5a43e1e7a675b27 (diff) |
CWS-TOOLING: integrate CWS mingwport23
2009-08-29 07:07:53 +0200 tono r275555 : i#104522: mingw port graphite
2009-08-29 07:07:26 +0200 tono r275554 : i#104522: mingw port printf format fix
Diffstat (limited to 'sal')
-rw-r--r-- | sal/inc/sal/types.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sal/inc/sal/types.h b/sal/inc/sal/types.h index 23c7529eed26..eec07286f2c5 100644 --- a/sal/inc/sal/types.h +++ b/sal/inc/sal/types.h @@ -124,10 +124,17 @@ typedef unsigned char sal_uInt8; #define SAL_CONST_INT64(x) x##ll #define SAL_CONST_UINT64(x) x##ull + #ifdef __MINGW32__ + #define SAL_PRIdINT64 "I64d" + #define SAL_PRIuUINT64 "I64u" + #define SAL_PRIxUINT64 "I64x" + #define SAL_PRIXUINT64 "I64X" + #else #define SAL_PRIdINT64 "lld" #define SAL_PRIuUINT64 "llu" #define SAL_PRIxUINT64 "llx" #define SAL_PRIXUINT64 "llX" + #endif #else #error "Could not find 64-bit type, add support for your architecture" #endif @@ -170,7 +177,7 @@ typedef void * sal_Handle; /* printf-style conversion specification length modifiers for size_t and ptrdiff_t (most platforms support C99, MSC has its own extension) */ -#if defined _MSC_VER +#if defined(_MSC_VER) || defined(__MINGW32__) #define SAL_PRI_SIZET "I" #define SAL_PRI_PTRDIFFT "I" #else |