From cfdcbf660d8e7fa6d68bf9559fef3153c8e558e7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Fri, 30 Apr 2010 16:46:22 +0000 Subject: [PATCH] Check in samples/dll for WXUSINGDLL. If it is set and DLL build of wx is used, emit an error, as the sample won't work correctly in that case. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64182 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/dll/wx_exe.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/samples/dll/wx_exe.cpp b/samples/dll/wx_exe.cpp index 65e7456cae..a4b5263123 100644 --- a/samples/dll/wx_exe.cpp +++ b/samples/dll/wx_exe.cpp @@ -31,6 +31,13 @@ #include "wx/stattext.h" #include "wx/button.h" +#ifndef __WXMSW__ + #error "This sample is MSW-only" +#endif + +#ifdef WXUSINGDLL + #error "This sample doesn't work with DLL build of wxWidgets" +#endif // ---------------------------------------------------------------------------- // GUI classes -- 2.45.2