diff options
author | Monsta <[email protected]> | 2015-08-24 22:25:31 +0300 |
---|---|---|
committer | infirit <[email protected]> | 2015-08-31 14:51:17 +0200 |
commit | e5e2b894e070fd0509c0016e7285d78c6ff543c3 (patch) | |
tree | 6b52f77438b32132f46da5521b3ccc693ba10123 /previewer/ev-previewer.c | |
parent | 0f060b5170016a28cf742edbc623dea906fa7f15 (diff) | |
download | atril-e5e2b894e070fd0509c0016e7285d78c6ff543c3.tar.bz2 atril-e5e2b894e070fd0509c0016e7285d78c6ff543c3.tar.xz |
drop support for win32/osx/hildon, make smclient mandatory
Diffstat (limited to 'previewer/ev-previewer.c')
-rw-r--r-- | previewer/ev-previewer.c | 33 |
1 files changed, 0 insertions, 33 deletions
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 <io.h> -#include <conio.h> -#if !(_WIN32_WINNT >= 0x0500) -#error "_WIN32_WINNT must be defined >= 0x0500" -#endif -#include <windows.h> -#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()); |