]> git.saurik.com Git - wxWidgets.git/commitdiff
Check in samples/dll for WXUSINGDLL.
authorVáclav Slavík <vslavik@fastmail.fm>
Fri, 30 Apr 2010 16:46:22 +0000 (16:46 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Fri, 30 Apr 2010 16:46:22 +0000 (16:46 +0000)
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

index 65e7456caecd3ff3e9da5ed816fd6729b879b3aa..a4b5263123c59e499d9d1a3f1d77e5c26306a11b 100644 (file)
 #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