mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-02-02 09:20:39 +01:00
Correct use of CRT.
This commit is contained in:
parent
af885a150f
commit
71a77fe82a
@ -29,6 +29,7 @@
|
||||
#include "firebird.h"
|
||||
#include <signal.h>
|
||||
#ifdef WIN_NT
|
||||
#include <fcntl.h>
|
||||
#include <io.h>
|
||||
#endif
|
||||
#include <stdio.h>
|
||||
@ -554,7 +555,7 @@ bool printData(const char*& p)
|
||||
{
|
||||
#ifdef WIN_NT
|
||||
binout = fileno(stdout);
|
||||
setmode(binout, 0);
|
||||
_setmode(binout, _O_BINARY);
|
||||
#else
|
||||
binout = 1;
|
||||
#endif
|
||||
@ -1090,7 +1091,7 @@ int main(int ac, char** av)
|
||||
{
|
||||
#ifdef WIN_NT
|
||||
binIn = fileno(stdin);
|
||||
setmode(binIn, 0);
|
||||
_setmode(binIn, _O_BINARY);
|
||||
#else
|
||||
binIn = 0;
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user