Mercurial > vim
diff src/if_ole.h @ 2851:c76efe33a3c1 v7.3.199
updated for version 7.3.199
Problem: MS-Windows: Compilation problem of OLE with MingW compiler.
Solution: Put #ifdef around declarations. (Guopeng Wen)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Wed, 25 May 2011 12:09:50 +0200 |
parents | 9fbb40a1228a |
children | 6e3dc2d630c2 |
line wrap: on
line diff
--- a/src/if_ole.h +++ b/src/if_ole.h @@ -46,8 +46,11 @@ typedef struct Vim Vim; /* header files for imported files */ #include "oaidl.h" -void __RPC_FAR * __RPC_USER MIDL_user_allocate(size_t); -void __RPC_USER MIDL_user_free( void __RPC_FAR * ); +#ifndef __MIDL_user_allocate_free_DEFINED__ +#define __MIDL_user_allocate_free_DEFINED__ + void __RPC_FAR * __RPC_USER MIDL_user_allocate(size_t); + void __RPC_USER MIDL_user_free( void __RPC_FAR * ); +#endif #ifndef __IVim_INTERFACE_DEFINED__ #define __IVim_INTERFACE_DEFINED__