]> git.saurik.com Git - wxWidgets.git/commitdiff
Add test that wxABI_VERSION is not set when compiling the library
authorMichael Wetherell <mike.wetherell@ntlworld.com>
Sun, 17 Jul 2005 12:55:45 +0000 (12:55 +0000)
committerMichael Wetherell <mike.wetherell@ntlworld.com>
Sun, 17 Jul 2005 12:55:45 +0000 (12:55 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34877 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/appbase.cpp

index 0892aab62d0e8724923a18458de698eefa927921..c0af2ac2564d6427b09314cf8aef2401184eaf22 100644 (file)
     #endif // wxUSE_STACKWALKER
 #endif // __WXDEBUG__
 
+// wxABI_VERSION can be defined when compiling applications but it should be
+// left undefined when compiling the library itself, it is then set to its
+// default value in version.h
+#if wxABI_VERSION != wxMAJOR_VERSION * 10000 + wxMINOR_VERSION * 100 + 99
+#error "wxABI_VERSION should not be defined when compiling the library"
+#endif
+
 // ----------------------------------------------------------------------------
 // private functions prototypes
 // ----------------------------------------------------------------------------