--- evince-2.32.0/shell/main.c 2010-07-27 11:47:54.000000000 -0400 +++ evince-2.32.0.new/shell/main.c 2013-02-02 23:57:54.000000000 -0500 @@ -43,9 +43,6 @@ #ifdef G_OS_WIN32 #include #include -#if !(_WIN32_WINNT >= 0x0500) -#error "_WIN32_WINNT must be defined >= 0x0500" -#endif #include #endif @@ -249,7 +246,7 @@ main (int argc, char *argv[]) AttachConsole_t p_AttachConsole = (AttachConsole_t) GetProcAddress (GetModuleHandle ("kernel32.dll"), "AttachConsole"); - if (p_AttachConsole != NULL && p_AttachConsole (ATTACH_PARENT_PROCESS)) + if (p_AttachConsole != NULL && p_AttachConsole (-1)) { freopen ("CONOUT$", "w", stdout); dup2 (fileno (stdout), 1);