From 9ee3e2c42a89de249e9ffdd0c5aeaa6bccb235a9 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Sat, 4 Jun 2011 00:14:38 +0000 Subject: [PATCH] Monotone-Parent: a3454a89b34b8bb6dd1906bf066c6d929fc08428 Monotone-Revision: 5fce621cdb57b71a081de204c031edb19e4e1568 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2011-06-04T00:14:38 Monotone-Branch: ca.inverse.sogo --- OpenChange/MAPIStoreTypes.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/OpenChange/MAPIStoreTypes.h b/OpenChange/MAPIStoreTypes.h index fd20b8e73..4ab5d7869 100644 --- a/OpenChange/MAPIStoreTypes.h +++ b/OpenChange/MAPIStoreTypes.h @@ -39,6 +39,22 @@ double *MAPIDoubleValue (void *memCtx, double value); id NSObjectFromSPropValue (const struct SPropValue *); id NSObjectFromMAPISPropValue (const struct mapi_SPropValue *); +#ifndef PRIx64 +#if __WORDSIZE == 64 + #define PRIx64 "lx" +#else + #define PRIx64 "llx" +#endif +#endif + +#ifndef PRIX64 +#if __WORDSIZE == 64 + #define PRIX64 "lX" +#else + #define PRIX64 "llX" +#endif +#endif + static inline NSNumber * MAPIPropertyKey (enum MAPITAGS propTag) {