mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-04 18:29:37 +02:00
GP-2596 Put standard i/o in binary mode
This commit is contained in:
parent
645b10bd99
commit
51d57e646b
1 changed files with 10 additions and 0 deletions
|
@ -17,6 +17,11 @@
|
|||
#include "flow.hh"
|
||||
#include "blockaction.hh"
|
||||
|
||||
#ifdef _WINDOWS
|
||||
#include <fcntl.h>
|
||||
#include <io.h>
|
||||
#endif
|
||||
|
||||
#ifdef __REMOTE_SOCKET__
|
||||
|
||||
#include "ifacedecomp.hh"
|
||||
|
@ -501,6 +506,11 @@ int main(int argc,char **argv)
|
|||
|
||||
{
|
||||
signal(SIGSEGV, &ArchitectureGhidra::segvHandler); // Exit on SEGV errors
|
||||
#ifdef _WINDOWS
|
||||
// Force i/o streams to be in binary mode
|
||||
_setmode(_fileno(stdin), _O_BINARY);
|
||||
_setmode(_fileno(stdout), _O_BINARY);
|
||||
#endif
|
||||
AttributeId::initialize();
|
||||
ElementId::initialize();
|
||||
CapabilityPoint::initializeAll();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue