winpr: fix header conflict with internal X11 definitions
This commit is contained in:
parent
ee2626b670
commit
2841fa32af
@ -453,10 +453,12 @@ WINPR_API HWND WINAPI CreateWindowExW(DWORD dwExStyle, LPCWSTR lpClassName,
|
||||
LPCWSTR lpWindowName, DWORD dwStyle, int X, int Y, int nWidth, int nHeight,
|
||||
HWND hWndParent, HMENU hMenu, HINSTANCE hInstance, LPVOID lpParam);
|
||||
|
||||
#ifndef WINPR_NO_CREATE_WINDOW
|
||||
#define CreateWindowA(lpClassName, lpWindowName, dwStyle, x, y, nWidth, nHeight, hWndParent, hMenu, hInstance, lpParam) \
|
||||
CreateWindowExA(0L, lpClassName, lpWindowName, dwStyle, x, y, nWidth, nHeight, hWndParent, hMenu, hInstance, lpParam)
|
||||
#define CreateWindowW(lpClassName, lpWindowName, dwStyle, x, y, nWidth, nHeight, hWndParent, hMenu, hInstance, lpParam) \
|
||||
CreateWindowExW(0L, lpClassName, lpWindowName, dwStyle, x, y, nWidth, nHeight, hWndParent, hMenu, hInstance, lpParam)
|
||||
#endif
|
||||
|
||||
WINPR_API HWND WINAPI FindWindowA(LPCSTR lpClassName, LPCSTR lpWindowName);
|
||||
WINPR_API HWND WINAPI FindWindowW(LPCWSTR lpClassName, LPCWSTR lpWindowName);
|
||||
@ -519,7 +521,9 @@ WINPR_API LRESULT WINAPI DefWindowProcW(HWND hWnd, UINT Msg, WPARAM wParam, LPAR
|
||||
#define RegisterClass RegisterClassW
|
||||
#define RegisterClassEx RegisterClassExW
|
||||
#define UnregisterClass UnregisterClassW
|
||||
#ifndef WINPR_NO_CREATE_WINDOW
|
||||
#define CreateWindow CreateWindowW
|
||||
#endif
|
||||
#define CreateWindowEx CreateWindowExW
|
||||
#define FindWindow FindWindowW
|
||||
#define FindWindowEx FindWindowExW
|
||||
@ -540,7 +544,9 @@ WINPR_API LRESULT WINAPI DefWindowProcW(HWND hWnd, UINT Msg, WPARAM wParam, LPAR
|
||||
#define RegisterClass RegisterClassA
|
||||
#define RegisterClassEx RegisterClassExA
|
||||
#define UnregisterClass UnregisterClassA
|
||||
#ifndef WINPR_NO_CREATE_WINDOW
|
||||
#define CreateWindow CreateWindowA
|
||||
#endif
|
||||
#define CreateWindowEx CreateWindowExA
|
||||
#define FindWindow FindWindowA
|
||||
#define FindWindowEx FindWindowExA
|
||||
|
Loading…
Reference in New Issue
Block a user