diff options
author | Jon Turney <jon.turney@dronecode.org.uk> | 2018-07-02 17:25:53 +0100 |
---|---|---|
committer | Jon Turney <jon.turney@dronecode.org.uk> | 2019-06-17 18:11:13 +0100 |
commit | d356dfc55d00b2a230d2798da0822325b995dfa9 (patch) | |
tree | 91793cf829a83ced39db3158dbcd495308ae5b5f | |
parent | d1874b4287a0a09a67f1ff529a95e52a07b2fc29 (diff) |
hw/xwin: Use BOOL type from Xmd.hclipboard-xcbification
This means we avoid all the issues with _XSERVER64 effecting how types
are defined by Xdefs.h
-rw-r--r-- | hw/xwin/winauth.c | 2 | ||||
-rw-r--r-- | hw/xwin/winauth.h | 4 | ||||
-rw-r--r-- | hw/xwin/winclipboard/internal.h | 4 | ||||
-rw-r--r-- | hw/xwin/winclipboard/thread.c | 4 | ||||
-rw-r--r-- | hw/xwin/winclipboard/winclipboard.h | 6 | ||||
-rw-r--r-- | hw/xwin/winclipboard/wndproc.c | 6 | ||||
-rw-r--r-- | hw/xwin/winclipboard/xevents.c | 8 |
7 files changed, 17 insertions, 17 deletions
diff --git a/hw/xwin/winauth.c b/hw/xwin/winauth.c index 02a693490..4764d4bfb 100644 --- a/hw/xwin/winauth.c +++ b/hw/xwin/winauth.c @@ -77,7 +77,7 @@ GenerateAuthorization(unsigned name_length, * Generate authorization cookie for internal server clients */ -Bool +BOOL winGenerateAuthorization(void) { #ifdef XCSECURITY diff --git a/hw/xwin/winauth.h b/hw/xwin/winauth.h index 68d3ac0cb..97cfe52a1 100644 --- a/hw/xwin/winauth.h +++ b/hw/xwin/winauth.h @@ -20,7 +20,7 @@ */ #include <xcb/xcb.h> -#include <X11/Xdefs.h> // for Bool +#include <X11/Xmd.h> // for BOOL -Bool winGenerateAuthorization(void); +BOOL winGenerateAuthorization(void); xcb_auth_info_t * winGetXcbAuthInfo(void); diff --git a/hw/xwin/winclipboard/internal.h b/hw/xwin/winclipboard/internal.h index bb862a258..368fa7057 100644 --- a/hw/xwin/winclipboard/internal.h +++ b/hw/xwin/winclipboard/internal.h @@ -33,7 +33,7 @@ #include <xcb/xproto.h> #include <X11/Xfuncproto.h> // for _X_ATTRIBUTE_PRINTF -#include <X11/Xdefs.h> // for Bool type +#include <X11/Xmd.h> // for BOOL /* Windows headers */ #include <X11/Xwindows.h> @@ -82,7 +82,7 @@ typedef struct * winclipboardwndproc.c */ -Bool winClipboardFlushWindowsMessageQueue(HWND hwnd); +BOOL winClipboardFlushWindowsMessageQueue(HWND hwnd); LRESULT CALLBACK winClipboardWindowProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam); diff --git a/hw/xwin/winclipboard/thread.c b/hw/xwin/winclipboard/thread.c index a1beb760f..cf908c600 100644 --- a/hw/xwin/winclipboard/thread.c +++ b/hw/xwin/winclipboard/thread.c @@ -104,7 +104,7 @@ intern_atom(xcb_connection_t *conn, const char *atomName) * returns TRUE if shutdown was signalled to loop, FALSE if some error occurred */ -Bool +BOOL winClipboardProc(char *szDisplay, xcb_auth_info_t *auth_info) { ClipboardAtoms atoms; @@ -121,7 +121,7 @@ winClipboardProc(char *szDisplay, xcb_auth_info_t *auth_info) xcb_connection_t *conn; xcb_window_t iWindow = XCB_NONE; int iSelectError; - Bool fShutdown = FALSE; + BOOL fShutdown = FALSE; ClipboardConversionData data; int screen; diff --git a/hw/xwin/winclipboard/winclipboard.h b/hw/xwin/winclipboard/winclipboard.h index 5b25e6e42..243aa24dc 100644 --- a/hw/xwin/winclipboard/winclipboard.h +++ b/hw/xwin/winclipboard/winclipboard.h @@ -27,15 +27,15 @@ #ifndef WINCLIPBOARD_H #define WINCLIPBOARD_H -#include <X11/Xdefs.h> // for Bool type #include <xcb/xcb.h> +#include <X11/Xmd.h> // for BOOL type -Bool winClipboardProc(char *szDisplay, xcb_auth_info_t *auth_info); +BOOL winClipboardProc(char *szDisplay, xcb_auth_info_t *auth_info); void winFixClipboardChain(void); void winClipboardWindowDestroy(void); -extern Bool fPrimarySelection; +extern BOOL fPrimarySelection; #endif diff --git a/hw/xwin/winclipboard/wndproc.c b/hw/xwin/winclipboard/wndproc.c index 5af52778d..bc954c0c6 100644 --- a/hw/xwin/winclipboard/wndproc.c +++ b/hw/xwin/winclipboard/wndproc.c @@ -131,7 +131,7 @@ winClipboardWindowProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) static xcb_connection_t *conn; static xcb_window_t iWindow; static ClipboardAtoms *atoms; - static Bool fRunning; + static BOOL fRunning; /* Branch on message type */ switch (message) { @@ -316,7 +316,7 @@ winClipboardWindowProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) case WM_RENDERFORMAT: { int iReturn; - Bool pasted = FALSE; + BOOL pasted = FALSE; xcb_atom_t selection; ClipboardConversionData data; int best_target = 0; @@ -446,7 +446,7 @@ winClipboardWindowProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) * Process any pending Windows messages */ -Bool +BOOL winClipboardFlushWindowsMessageQueue(HWND hwnd) { MSG msg; diff --git a/hw/xwin/winclipboard/xevents.c b/hw/xwin/winclipboard/xevents.c index 672e7e139..af956679b 100644 --- a/hw/xwin/winclipboard/xevents.c +++ b/hw/xwin/winclipboard/xevents.c @@ -59,7 +59,7 @@ */ extern int xfixes_event_base; -Bool fPrimarySelection = TRUE; +BOOL fPrimarySelection = TRUE; /* * Local variables @@ -198,7 +198,7 @@ winClipboardSelectionNotifyData(HWND hwnd, xcb_window_t iWindow, xcb_connection_ xcb_atom_t xtpText_encoding; int xtpText_nitems; - Bool fSetClipboardData = TRUE; + BOOL fSetClipboardData = TRUE; char *pszReturnData = NULL; UINT codepage; wchar_t *pwszUnicodeStr = NULL; @@ -403,8 +403,8 @@ winClipboardFlushXEvents(HWND hwnd, char *pszGlobalData = NULL; HGLOBAL hGlobal = NULL; char *pszConvertData = NULL; - Bool fAbort = FALSE; - Bool fCloseClipboard = FALSE; + BOOL fAbort = FALSE; + BOOL fCloseClipboard = FALSE; /* Branch on the event type */ switch (event->response_type & ~0x80) { |