Fix a problem with wxGetDisplay() in wxGTK/MSW build
Only define wxGetDisplay() in Unix builds. Closes https://github.com/wxWidgets/wxWidgets/pull/2206
This commit is contained in:
parent
98d3a4ccdc
commit
a291e1c004
@ -782,7 +782,7 @@ void WXDLLIMPEXP_CORE wxGetMousePosition( int* x, int* y );
|
||||
// X11 Display access
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
#if defined(__X__) || defined(__WXGTK__)
|
||||
#if defined(__X__) || (defined(__WXGTK__) && defined(__UNIX__))
|
||||
|
||||
#ifdef __WXGTK__
|
||||
WXDLLIMPEXP_CORE void *wxGetDisplay();
|
||||
|
@ -72,6 +72,8 @@ void wxBell()
|
||||
// display characteristics
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
#if defined(__UNIX__)
|
||||
|
||||
void *wxGetDisplay()
|
||||
{
|
||||
return wxGetDisplayInfo().dpy;
|
||||
@ -98,6 +100,8 @@ wxDisplayInfo wxGetDisplayInfo()
|
||||
return info;
|
||||
}
|
||||
|
||||
#endif // __UNIX__
|
||||
|
||||
wxWindow* wxFindWindowAtPoint(const wxPoint& pt)
|
||||
{
|
||||
return wxGenericFindWindowAtPoint(pt);
|
||||
|
Loading…
Reference in New Issue
Block a user