[Top][All Lists]

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

Feature Branch Windows Build - lib/dup-safer.c & dup

From: Conrad T. Pino
Subject: Feature Branch Windows Build - lib/dup-safer.c & dup
Date: Wed, 25 May 2005 13:26:40 -0700

Hi All,

The "dup" function call in "lib/dup-safer.c" has no
prototype included.  Windows Visual C 6.0 does NOT
implement "dup" but does implement "_dup" as:

        int _dup( int handle );

I've added "#define dup _dup" to "config.h" chain
but Microsoft provides the prototype in "<io.h>"
which is NOT referenced in "lib/dup-safer.c" and
perhaps should be.

I don't know the "m4" stuff and can't provide the
complete solutions.  Suggestions are welcome.

The warning is below and it could be ignored since
the assumed and actual return types are the same.

Best regards,

Conrad Pino

h:\conrad\projects\cvs-1.12\lib\dup-safer.c(48) : warning C4013: '_dup' 
undefined; assuming extern returning int

reply via email to

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