dpnet: Forward declare IDirectPlay8Address when you include dpaddr.h

Alistair Leslie-Hughes leslie_alistair at hotmail.com
Wed Feb 12 22:03:36 CST 2014


Hi,
dpaddr.h includes dplay8.h and
dplay8.h includes dpaddr.h.

So we need this since it has a circular dependency. (even on windows)

Changelog:
       dpnet: Forward declare IDirectPlay8Address when you include dpaddr.h


Best Regards
   Alistair Leslie-Hughes
-------------- next part --------------
>From a34607109c01ebc032cb2821c2c77698f20ec80f Mon Sep 17 00:00:00 2001
From: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Date: Thu, 13 Feb 2014 14:57:57 +1100
Subject: [PATCH] Forward declare IDirectPlay8Address when you include dpaddr.h
To: wine-patches <wine-patches at winehq.org>

---
 include/dplay8.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/dplay8.h b/include/dplay8.h
index 13bdfb0..66af4c7 100644
--- a/include/dplay8.h
+++ b/include/dplay8.h
@@ -26,6 +26,8 @@
 extern "C" {
 #endif /* defined(__cplusplus) */
 
+/* Forward declare */
+typedef struct IDirectPlay8Address IDirectPlay8Address;
 
 typedef HRESULT (WINAPI *PFNDPNMESSAGEHANDLER)(PVOID, DWORD, PVOID);
 typedef DWORD	DPNID, *PDPNID;
-- 
1.8.3.2



More information about the wine-patches mailing list