]> git.saurik.com Git - wxWidgets.git/commitdiff
Bracket vararg macro definition with wxHAS_VARIADIC_MACROS.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 26 Nov 2012 15:50:37 +0000 (15:50 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 26 Nov 2012 15:50:37 +0000 (15:50 +0000)
This should fix tests compilation with VC6.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73024 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/testing.h

index 6a729209cc55def5447ab045eebde4e6b3bb6eaa..fce2c508ba73e70b3da5aea203590602e31e5c72 100644 (file)
@@ -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