[Top][All Lists]

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

[Lzip-bug] Re: Version 1.11-rc4 of lzip released

From: JonY
Subject: [Lzip-bug] Re: Version 1.11-rc4 of lzip released
Date: Tue, 10 Aug 2010 23:48:15 +0800
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20080213 Thunderbird/ Mnenhy/

On 8/10/2010 23:57, Antonio Diaz Diaz wrote:
Elbert Pol wrote:
Succesfully ported rc4 to OS2 from the scratch !! :)
Din't have to change a byte...


JonY, I am trying to adapt ocrad to Visual Studio 2010, but Tilman
Hausherr says STDIN_FILENO and __MSVCRT__ don't exist on VS2010[1]. Is
_MSC_VER defined by your compiler?
[1] http://lists.gnu.org/archive/html/bug-ocrad/2010-08/msg00002.html

Could you three please, try the following code (or propose alternatives
combining what we have tried already):

#if defined(_MSC_VER) || defined(__OS2__)
setmode( fileno( stdin ), O_BINARY );
setmode( fileno( stdout ), O_BINARY );

I'm surprised somebody is working on an MSVC port. Sadly, _MSC_VER is specific to MSVC.

Perhaps checking for __MINGW32__ specific to mingw too in addition to _MSC_VER? There are other win32 compilers like OpenWatcom, but I don't know what their capable of.

I am avoiding _WIN32 because in Cygwin, including any win32 specific header will cause it to be defined, messing up the macro guards. Not that we do actually include win32 headers, but accidents could happen.

reply via email to

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