fixed uncompressCmd file location for Win32.
[swftools.git] / pdf2swf / xpdf / Stream.cc
index 9777940..c47c5af 100644 (file)
@@ -16,6 +16,8 @@
 #include <stddef.h>
 #ifndef WIN32
 #include <unistd.h>
+#else
+extern "C" int unlink(char *filename);
 #endif
 #include <string.h>
 #include <ctype.h>
@@ -1042,7 +1044,11 @@ void LZWStream::reset() {
   fclose(f);
 
   //----- execute uncompress / gzip
+#ifdef WIN32
+  zCmd = new GString("c:\\swftools\\gzip.exe");
+#else
   zCmd = new GString(uncompressCmd);
+#endif
   zCmd->append(' ');
   zCmd->append(zName);
 #if defined(MACOS)