From: Vadim Zeitlin Date: Mon, 26 Nov 2012 15:50:37 +0000 (+0000) Subject: Bracket vararg macro definition with wxHAS_VARIADIC_MACROS. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/e4f3b467b84aaf5b57c8f8ae9db7c06f712c0e85 Bracket vararg macro definition with wxHAS_VARIADIC_MACROS. This should fix tests compilation with VC6. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73024 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/testing.h b/include/wx/testing.h index 6a729209cc..fce2c508ba 100644 --- a/include/wx/testing.h +++ b/include/wx/testing.h @@ -387,6 +387,7 @@ private: wxExpectModal<> for your dialog type and implement its OnInvoked() method. */ +#ifdef wxHAS_VARIADIC_MACROS #define wxTEST_DIALOG(codeToRun, ...) \ { \ wxTEST_DIALOG_HOOK_CLASS wx_hook; \ @@ -394,7 +395,7 @@ private: codeToRun; \ wx_hook.CheckUnmetExpectations(); \ } - +#endif /* wxHAS_VARIADIC_MACROS */ #endif // !WXBUILDING