]> www.fi.muni.cz Git - evince.git/blobdiff - thumbnailer/evince-thumbnailer.c
On Windows, when called from a console, get console output (works only
[evince.git] / thumbnailer / evince-thumbnailer.c
index 3598fdf6aa9e82aac099d864ca5e4fcea02fe51e..457ceeaa0c9f341658ea783cb15f1182b1da4beb 100644 (file)
 #include <stdlib.h>
 #include <string.h>
 
+#ifdef G_OS_WIN32
+#ifdef DATADIR
+#undef DATADIR
+#endif
+#include <io.h>
+#include <conio.h>
+#define _WIN32_WINNT 0x0500
+#include <windows.h>
+#endif
+
 #define THUMBNAIL_SIZE 128
 
 static gint size = THUMBNAIL_SIZE;