--- wget/src/http.c	Thu Apr  7 14:26:34 2005
+++ wget.wip/src/http.c	Fri Apr  8 09:40:36 2005
@@ -358,6 +358,18 @@
   xfree (req);
 }
 
+/* Turn off optimization for Visual Studio 6 sp6 in order to avoid
+http.c(395) : fatal error C1001: INTERNAL COMPILER ERROR
+                (compiler file 'F:\9782\vc98\p2\src\P2\main.c', line 494)
+Not neccessary at least for
+Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13.00.9466 for 80x86
+*/
+#ifdef _MSC_VER
+#if _MSC_VER<=1200
+#pragma optimize("g",off)
+#endif
+#endif
+
 /* Send the contents of FILE_NAME to SOCK/SSL.  Make sure that exactly
    PROMISED_SIZE bytes are sent over the wire -- if the file is
    longer, read only that much; if the file is shorter, report an error.  */
@@ -405,6 +417,12 @@
   return 0;
 }
 
+#ifdef _MSC_VER
+#if _MSC_VER<=1200
+#pragma optimize("g",on)
+#endif
+#endif
+
 static const char *
 response_head_terminator (const char *hunk, int oldlen, int peeklen)
 {
--- wget/src/retr.c	Fri Apr  8 09:24:00 2005
+++ wget.wip/src/retr.c	Fri Apr  8 09:42:14 2005
@@ -193,6 +193,18 @@
    error while reading data, -1 is returned.  In case of error while
    writing data, -2 is returned.  */
 
+/* Turn off optimization for Visual Studio 6 sp6 in order to avoid
+http.c(395) : fatal error C1001: INTERNAL COMPILER ERROR
+                (compiler file 'F:\9782\vc98\p2\src\P2\main.c', line 494)
+Not neccessary at least for
+Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13.00.9466 for 80x86
+*/
+#ifdef _MSC_VER
+#if _MSC_VER<=1200
+#pragma optimize("g",off)
+#endif
+#endif
+
 int
 fd_read_body (int fd, FILE *out, wgint toread, wgint startpos,
 	      wgint *qtyread, wgint *qtywritten, double *elapsed, int flags)
@@ -338,6 +350,12 @@
   return ret;
 }
 
+#ifdef _MSC_VER
+#if _MSC_VER<=1200
+#pragma optimize("g",on)
+#endif
+#endif
+
 /* Read a hunk of data from FD, up until a terminator.  The terminator
    is whatever the TERMINATOR function determines it to be; for
    example, it can be a line of data, or the head of an HTTP response.
