hw/xwin: Remove unused X includes from internal.h and add them where needed

Also removing server headers we might clash with and no longer need.  Make
a few adjustments to allow for this change:

- provide a prototype of ErrorF()
- use the MAX() macro provided by sys/param.h, not the max() macro provided by misc.h
- use the X 'Bool' type rather than the unwrapped Windows 'BOOL' type

Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Reviewed-by: Colin Harrison <colin.harrison@virgin.net>
This commit is contained in:
Jon TURNEY
2013-06-20 12:50:18 +01:00
parent 52f3cf3c61
commit cbe133752d
4 changed files with 11 additions and 11 deletions

View File

@@ -37,8 +37,9 @@
#include <sys/types.h>
#include <sys/time.h>
#include <X11/Xatom.h>
#include "internal.h"
#include "misc.h"
#include "winclipboard.h"
/*
@@ -499,7 +500,7 @@ winClipboardWindowProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
* Process any pending Windows messages
*/
BOOL
Bool
winClipboardFlushWindowsMessageQueue(HWND hwnd)
{
MSG msg;