|
From: | Bruno Haible |
Subject: | Re: Comparing binary files with Diff 3.2 compiled with MinGW |
Date: | Sat, 12 May 2012 20:58:46 +0200 |
User-agent: | KMail/4.7.4 (Linux/3.1.10-1.9-desktop; KDE/4.7.4; x86_64; ; ) |
Eli Zaretskii wrote: > > Eli Zaretskii wrote: > > > -# if defined __EMX__ || defined __DJGPP__ || defined __CYGWIN__ > > > +# if defined __EMX__ || defined __DJGPP__ || defined __CYGWIN__ || > > > defined __MINGW32__ > > > # include <io.h> /* declares setmode() */ > > > # else > > > # define setmode _setmode > > > > What is the rationale/benefit for this proposed change? > > MinGW provides 'setmode' whose declaration is in io.h. But mingw's declaration of 'fileno' in stdio.h is not always enabled (only if !defined _NO_OLDNAMES). Therefore the #else branch is needed on mingw. Bruno
[Prev in Thread] | Current Thread | [Next in Thread] |