From e5e2b894e070fd0509c0016e7285d78c6ff543c3 Mon Sep 17 00:00:00 2001 From: Monsta Date: Mon, 24 Aug 2015 22:25:31 +0300 Subject: drop support for win32/osx/hildon, make smclient mandatory --- previewer/ev-previewer.c | 33 --------------------------------- 1 file changed, 33 deletions(-) (limited to 'previewer/ev-previewer.c') diff --git a/previewer/ev-previewer.c b/previewer/ev-previewer.c index b19fc08f..53cb2e22 100644 --- a/previewer/ev-previewer.c +++ b/previewer/ev-previewer.c @@ -27,15 +27,6 @@ #include "ev-previewer-window.h" -#ifdef G_OS_WIN32 -#include -#include -#if !(_WIN32_WINNT >= 0x0500) -#error "_WIN32_WINNT must be defined >= 0x0500" -#endif -#include -#endif - static gboolean unlink_temp_file = FALSE; static const gchar *print_settings; static const gchar **filenames; @@ -106,30 +97,6 @@ main (gint argc, gchar **argv) EvDocumentModel *model; GError *error = NULL; -#ifdef G_OS_WIN32 - if (fileno (stdout) != -1 && - _get_osfhandle (fileno (stdout)) != -1) - { - /* stdout is fine, presumably redirected to a file or pipe */ - } - else - { - typedef BOOL (* WINAPI AttachConsole_t) (DWORD); - - AttachConsole_t p_AttachConsole = - (AttachConsole_t) GetProcAddress (GetModuleHandle ("kernel32.dll"), "AttachConsole"); - - if (p_AttachConsole != NULL && p_AttachConsole (ATTACH_PARENT_PROCESS)) - { - freopen ("CONOUT$", "w", stdout); - dup2 (fileno (stdout), 1); - freopen ("CONOUT$", "w", stderr); - dup2 (fileno (stderr), 2); - - } - } -#endif - #ifdef ENABLE_NLS /* Initialize the i18n stuff */ bindtextdomain (GETTEXT_PACKAGE, ev_get_locale_dir()); -- cgit v1.2.1