aboutsummaryrefslogtreecommitdiffstats
path: root/src/native/addrbook/msoutlook/MsOutlookMAPI.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/native/addrbook/msoutlook/MsOutlookMAPI.h')
-rw-r--r--src/native/addrbook/msoutlook/MsOutlookMAPI.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/native/addrbook/msoutlook/MsOutlookMAPI.h b/src/native/addrbook/msoutlook/MsOutlookMAPI.h
index 6dcc0b0..33f5747 100644
--- a/src/native/addrbook/msoutlook/MsOutlookMAPI.h
+++ b/src/native/addrbook/msoutlook/MsOutlookMAPI.h
@@ -8,17 +8,19 @@
#ifndef _NET_JAVA_SIP_COMMUNICATOR_PLUGIN_ADDRBOOK_MSOUTLOOK_MSOUTLOOKMAPI_H_
#define _NET_JAVA_SIP_COMMUNICATOR_PLUGIN_ADDRBOOK_MSOUTLOOK_MSOUTLOOKMAPI_H_
+#define WIN32_LEAN_AND_MEAN
+#include <windows.h>
+
#ifndef __in_opt
#define __in_opt
#endif /* #ifndef __in_opt */
-
+#if defined(_WINBASE_H) && !defined(_WINBASE_)
+#define _tagCY_DEFINED
+#define _WINBASE_
+#endif
#include <mapitags.h>
#include <mapix.h>
-#define WIN32_LEAN_AND_MEAN
-#include <windows.h>
-
-
SCODE MsOutlookAddrBook_MAPIAllocateBuffer(ULONG size, LPVOID FAR *buffer);
#define MAPIAllocateBuffer MsOutlookAddrBook_MAPIAllocateBuffer
ULONG MsOutlookAddrBook_MAPIFreeBuffer(LPVOID buffer);