Skip to content

Commit

Permalink
hw/xwin: Wrap 'Status' when including ddraw.h
Browse files Browse the repository at this point in the history
Status is #defined as an alias for a type in xkbsrv.h, which conflicts with it's
use as a parameter name in rpcdce.h

This fixes compilation with MinGW-w64 w32api headers

(The MinGW-w64 w32api headers actually provide a ddraw.h, so this fix tries to
do things in a way which will still work if our private copy of ddraw.h is
eventually removed)

Signed-off-by: Jon TURNEY <[email protected]>
Reviewed-by:  Colin Harrison <[email protected]>
  • Loading branch information
jon-turney committed Nov 5, 2012
1 parent 57bbf6e commit a4941ce
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hw/xwin/winms.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,11 @@
#include <X11/Xwindows.h>
#include <windowsx.h>

#pragma push_macro("Status")
#undef Status
#define Status wStatus
#include "ddraw.h"
#pragma pop_macro("Status")

#undef CreateWindow

Expand Down

0 comments on commit a4941ce

Please sign in to comment.