X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ce29e4fbe5d8f0c0e6972da064446204e59e9905..7e4fb3b8168f4f2dbf2f8a246d3e094a8ccba194:/src/common/wincmn.cpp

diff --git a/src/common/wincmn.cpp b/src/common/wincmn.cpp
index 5115c3cce6..8277a7c785 100644
--- a/src/common/wincmn.cpp
+++ b/src/common/wincmn.cpp
@@ -438,7 +438,8 @@ void wxWindowBase::Centre(int direction)
         //RN:  If we are using wxDisplay we get
         //the dimensions of the monitor the window is on,
         //otherwise we get the dimensions of the primary monitor
-#if wxUSE_DISPLAY
+        //FIXME:  wxDisplay::GetFromWindow only implemented on MSW
+#if wxUSE_DISPLAY && defined(__WXMSW__)
         int nDisplay = wxDisplay::GetFromWindow((wxWindow*)this);
         if(nDisplay != wxNOT_FOUND)
         {