bug-cgicc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CgiEnvironment for WIN32


From: Edward Diener
Subject: CgiEnvironment for WIN32
Date: Sun, 20 Jan 2002 18:19:56 -0500
User-agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:0.9.4) Gecko/20011019 Netscape6/6.2

Line 48 in CgiEnvironment.cpp is:

 _setmode(_fileno(stdin), _O_BINARY);

The _fileno function, or macro, is in stdio.h . Therefore stdio.h should be included in the source file. It is just an implementation detail that stdio.h happens to be included by another one of the WIN32 header files. The corrected lines 31-34 should read:

#ifdef WIN32
#include <io.h>
#include <fcntl.h>
#include <stdio.h>
#endif





reply via email to

[Prev in Thread] Current Thread [Next in Thread]