2009-08-18  Kai Tietz  <kai.tietz@onevision.com>

        Guard __RPC_API MIDL_user_allocate and __RPC_API MIDL_user_free
        by __MIDL_user_allocate_free_DEFINED__ macro to prevent gcc warnings.



git-svn-id: svn+ssh://svn.code.sf.net/p/mingw-w64/code/trunk@1176 4407c894-4637-0410-b4f5-ada5f102cad1
diff --git a/mingw-w64-headers/include/objidl.h b/mingw-w64-headers/include/objidl.h
index 3cde218..947de81 100644
--- a/mingw-w64-headers/include/objidl.h
+++ b/mingw-w64-headers/include/objidl.h
@@ -473,8 +473,11 @@
 extern "C" {
 #endif
 
+#ifndef __MIDL_user_allocate_free_DEFINED__
+#define __MIDL_user_allocate_free_DEFINED__
   void *__RPC_API MIDL_user_allocate(size_t);
   void __RPC_API MIDL_user_free(void *);
+#endif
 
   typedef struct _COSERVERINFO {
     DWORD dwReserved1;