]> git.saurik.com Git - wxWidgets.git/commitdiff
don't define wxCRT_xxprintfW function if the corresponding xxprintfw() standard funct...
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 23 Sep 2007 00:20:35 +0000 (00:20 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 23 Sep 2007 00:20:35 +0000 (00:20 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48909 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/wxcrtvararg.h

index 8585479dd6a09803f91b0c53565845b44d633ae6..272bbcf85e72da7a78e740da3e9091a567ccf4dc 100644 (file)
 #define wxCRT_VprintfA       vprintf
 #define wxCRT_VsprintfA      vsprintf
 
-#define  wxCRT_FprintfW      fwprintf
-#define  wxCRT_PrintfW       wprintf
-#define  wxCRT_VfprintfW     vfwprintf
-#define  wxCRT_VprintfW      vwprintf
-
-#if defined(__WINDOWS__) && !defined(HAVE_VSWPRINTF)
-// only non-standard vswprintf() without buffer size argument can be used here
-#define  wxCRT_VsprintfW     vswprintf
-#endif
-
 /*
    In Unicode mode we need to have all standard functions such as wprintf() and
    so on but not all systems have them so use our own implementations in this
     int wxCRT_VfprintfW( FILE *stream, const wchar_t *format, va_list ap );
     int wxCRT_VprintfW( const wchar_t *format, va_list ap );
     int wxCRT_VsprintfW( wchar_t *str, const wchar_t *format, va_list ap );
+#else /* !wxNEED_WPRINTF */
+    #define wxCRT_FprintfW      fwprintf
+    #define wxCRT_PrintfW       wprintf
+    #define wxCRT_VfprintfW     vfwprintf
+    #define wxCRT_VprintfW      vwprintf
+    
+    #if defined(__WINDOWS__) && !defined(HAVE_VSWPRINTF)
+        // only non-standard vswprintf() without buffer size argument can be used here
+        #define  wxCRT_VsprintfW     vswprintf
+    #endif
 #endif /* wxNEED_WPRINTF */