From 7ffdaf81b5cf0573ad766c4a4e672d28422f7417 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 18 Oct 1999 14:53:47 +0000 Subject: [PATCH] compilation fix for non OLE clipboard git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4050 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/clipbrd.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/msw/clipbrd.cpp b/src/msw/clipbrd.cpp index f31924940b..043d879ae2 100644 --- a/src/msw/clipbrd.cpp +++ b/src/msw/clipbrd.cpp @@ -446,6 +446,7 @@ void wxClipboard::Clear() bool wxClipboard::Flush() { +#if wxUSE_OLE_CLIPBOARD if ( FAILED(OleFlushClipboard()) ) { wxLogLastError("OleFlushClipboard"); @@ -458,6 +459,9 @@ bool wxClipboard::Flush() return TRUE; } +#else // !wxUSE_OLE_CLIPBOARD + return FALSE; +#endif // wxUSE_OLE_CLIPBOARD/!wxUSE_OLE_CLIPBOARD } bool wxClipboard::Open() -- 2.45.2