From 121aea4614b46a02faa414e9067500f43a20130b Mon Sep 17 00:00:00 2001 From: Michael Wetherell Date: Sun, 17 Jul 2005 12:55:45 +0000 Subject: [PATCH] Add test that wxABI_VERSION is not set when compiling the library git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34877 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/appbase.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/common/appbase.cpp b/src/common/appbase.cpp index 0892aab62d..c0af2ac256 100644 --- a/src/common/appbase.cpp +++ b/src/common/appbase.cpp @@ -76,6 +76,13 @@ #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 // ---------------------------------------------------------------------------- -- 2.45.2