From 8fde61ed10b121a1e9dc0a31e2ce8562c4066a09 Mon Sep 17 00:00:00 2001 From: Mattia Barbon Date: Sat, 6 Jul 2002 12:49:41 +0000 Subject: [PATCH] GCC can't test prototype if using wchar_t instead of char. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16062 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/defs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/wx/defs.h b/include/wx/defs.h index 80896a98d8..537a7f5ad9 100644 --- a/include/wx/defs.h +++ b/include/wx/defs.h @@ -428,7 +428,7 @@ typedef void (*wxFunction) (wxObject&, wxEvent&); #endif // Printf-like attribute definitions to obtain warnings with GNU C/C++ -#if defined(__GNUC__) +#if defined(__GNUC__) && !wxUSE_UNICODE # ifndef ATTRIBUTE_PRINTF # define ATTRIBUTE_PRINTF(m, n) __attribute__ ((__format__ (__printf__, m, n))) # define ATTRIBUTE_PRINTF_1 ATTRIBUTE_PRINTF(1, 2)