+// Visual C++ run-time produces different results from glibc (not sure if this
+// was tested using other run-times to be honest) so adjust the test results in
+// some cases. Remember that while we test our own wxPrintf() code here, it
+// uses the system sprintf() for actual formatting so the results are still
+// different under different systems.
+//
+// Notice that MinGW uses VC CRT by default but may use its own printf()
+// implementation if __USE_MINGW_ANSI_STDIO is defined. And finally also notice
+// that testing for __USE_MINGW_ANSI_STDIO directly results in a warning with
+// -Wundef if it involves an operation with undefined __MINGW_FEATURES__ so
+// test for the latter too to avoid it.
+#if defined(__VISUALC__) || \
+ (defined(__MINGW32__) && !defined(__MINGW_FEATURES__) || !__USE_MINGW_ANSI_STDIO)
+ #define USING_VC_CRT
+#endif