# ifdef WINDOWSNT
/* Restore the original definition of __MINGW_MAJOR_VERSION. */
-# ifdef W32_SAVE_MINGW_VERSION
-# undef __MINGW_MAJOR_VERSION
-# define __MINGW_MAJOR_VERSION W32_SAVE_MINGW_VERSION
-# ifdef __MINGW_MAJOR_VERSION
-# undef W32_SAVE_MINGW_VERSION
+# if defined W32_SAVE_MINGW_VERSION && defined __MINGW_MAJOR_VERSION
+# undef __MINGW_MAJOR_VERSION
+# define __MINGW_MAJOR_VERSION W32_SAVE_MINGW_VERSION
+# ifdef __MINGW_MAJOR_VERSION
+# undef W32_SAVE_MINGW_VERSION
+# endif
# endif
-# endif
/* SVG library functions. */
# if LIBRSVG_CHECK_VERSION (2, 32, 0)
0, 0, 0, doc: /* Return the name of Windows default printer device. */)
(void)
{
- static char pname_buf[256];
+ static char pname_buf[2 * MAX_UTF8_PATH + 3 - 1];
int err;
HANDLE hPrn;
PRINTER_INFO_2W *ppi2w = NULL;