mirror of
https://github.com/NationalSecurityAgency/ghidra
synced 2024-09-13 21:56:19 +00:00
Merge remote-tracking branch 'origin/GP-2596_WindowsBinaryMode'
This commit is contained in:
commit
9e675358c2
|
@ -17,6 +17,11 @@
|
||||||
#include "flow.hh"
|
#include "flow.hh"
|
||||||
#include "blockaction.hh"
|
#include "blockaction.hh"
|
||||||
|
|
||||||
|
#ifdef _WINDOWS
|
||||||
|
#include <fcntl.h>
|
||||||
|
#include <io.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __REMOTE_SOCKET__
|
#ifdef __REMOTE_SOCKET__
|
||||||
|
|
||||||
#include "ifacedecomp.hh"
|
#include "ifacedecomp.hh"
|
||||||
|
@ -501,6 +506,11 @@ int main(int argc,char **argv)
|
||||||
|
|
||||||
{
|
{
|
||||||
signal(SIGSEGV, &ArchitectureGhidra::segvHandler); // Exit on SEGV errors
|
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();
|
AttributeId::initialize();
|
||||||
ElementId::initialize();
|
ElementId::initialize();
|
||||||
CapabilityPoint::initializeAll();
|
CapabilityPoint::initializeAll();
|
||||||
|
|
Loading…
Reference in a new issue