Prevent MakeMaker from searching for the winsock2 library - it was found by the linke...
[catagits/fcgi2.git] / libfcgi / fcgio.cpp
index 66489ed..c1b4367 100644 (file)
@@ -1,5 +1,5 @@
 //
-// $Id: fcgio.cpp,v 1.2 2000/07/21 20:56:28 robs Exp $
+// $Id: fcgio.cpp,v 1.5 2001/06/22 14:27:06 robs Exp $
 //
 // Allows you communicate with FastCGI streams using C++ iostream
 // objects
 
 /*------------------------------------------------------------------*/
 
+#ifdef _WIN32
+#define DLLAPI  __declspec(dllexport)
+#endif
 
-#include "fcgio2.h"
+#include "fcgio.h"
 
 
 // **** fcgio_streambuf
@@ -152,8 +155,8 @@ int fcgi_streambuf::overflow(int c)
 // in case somebody calls this, ignore it
 streambuf * fcgi_streambuf::setbuf(char *s, int n)
    {
-   // tell them what they want to hear to make them
-   // go away
+   // Touch the args to avoid compiler warnings
+   s = NULL; n = 0;
    return this;
    }