Fix for Borland C++ and C++Builder
Brought to you by:
nulllogic
I have a fix for Null WebMail 0.6.4 to submit to
support Borland C++ 5 and C++Builder 4 and 5
compilers.
In order to make the sources, I had to make a slight
modification to main.c.
I thought you might be interested:
#ifdef _MSC_VER
_setmode(_fileno(stdin), _O_BINARY);
_setmode(_fileno(stdout), _O_BINARY);
#else
setmode(fileno(stdin), O_BINARY);
setmode(fileno(stdout), O_BINARY);
#endif
Why Microsoft decided to prepend underscores to
these functions, I have no idea.
Fix for non-MS Win32 C++ compilers