diff -ur dvipng-1.14.orig/dvipng.c dvipng-1.14/dvipng.c --- dvipng-1.14.orig/dvipng.c 2008-02-08 14:45:25.000000000 +0100 +++ dvipng-1.14/dvipng.c 2011-08-03 13:34:44.000000000 +0200 @@ -79,6 +79,10 @@ kpse_set_program_enabled (kpse_pk_format, makeTexPK, kpse_src_compile); #endif +#ifdef WIN32 + texlive_gs_init (); +#endif + initcolor(); parsestdin = DecodeArgs(argc, argv); diff -ur dvipng-1.14.orig/special.c dvipng-1.14/special.c --- dvipng-1.14.orig/special.c 2011-02-07 11:47:08.000000000 +0100 +++ dvipng-1.14/special.c 2012-08-25 21:36:09.000000000 +0200 @@ -28,11 +28,8 @@ #ifndef WIN32 #include #else /* WIN32 */ -#include -#include -#include +#undef pipe #define pipe(p) _pipe(p, 65536, O_BINARY | _O_NOINHERIT) -#define snprintf _snprintf #endif /* WIN32 */ #endif