refactor: remove workarounds for unsupported ms vc versions

This commit is contained in:
sithlord48 2024-11-27 00:14:32 -05:00 committed by Chris Rizzitello
parent c5cfdc2b69
commit 7f9fd80f98
2 changed files with 0 additions and 36 deletions

View file

@ -26,31 +26,3 @@
#endif
#include "stdpost.h"
#if defined(_MSC_VER) && _MSC_VER <= 1200
// VC++6 istream has no overloads for __int* types, .NET does
inline std::istream &operator>>(std::istream &s, SInt8 &i)
{
return s >> (signed char &)i;
}
inline std::istream &operator>>(std::istream &s, SInt16 &i)
{
return s >> (short &)i;
}
inline std::istream &operator>>(std::istream &s, SInt32 &i)
{
return s >> (int &)i;
}
inline std::istream &operator>>(std::istream &s, UInt8 &i)
{
return s >> (unsigned char &)i;
}
inline std::istream &operator>>(std::istream &s, UInt16 &i)
{
return s >> (unsigned short &)i;
}
inline std::istream &operator>>(std::istream &s, UInt32 &i)
{
return s >> (unsigned int &)i;
}
#endif

View file

@ -18,14 +18,6 @@
#pragma once
// hack: vs2005 doesn't declare _WIN32_WINNT, so we need to hard code it.
// however, some say that this should be hard coded since it defines the
// target system, but since this is suposed to compile on pre-XP, maybe
// we should just leave it like this.
#if _MSC_VER == 1400
#define _WIN32_WINNT 0x0400
#endif
#include "base/EventTypes.h"
#define WIN32_LEAN_AND_MEAN