mirror of
https://github.com/shawns-valve/halflife.git
synced 2024-11-26 22:21:17 +00:00
a800ff8246
fixes ValveSoftware/halflife#1338 Changes: - added project files for Visual C++ 2010 Express - resolved function calls that would otherwise be ambiguous now - solved ARRAYSIZE macro and HSPRITE type collisions with Windows.h and winsock.h includes by guarding the includes TODO: We should think about if we actually should instead link to a .h that defines / redirects the required macros, so that platform differences would be limited to a few .cpp files (meaning not including windows.h in a huge number of files as it is now), see the issue above for details.
7 lines
168 B
C
7 lines
168 B
C
#if _MSC_VER >= 1500 // MSVC++ 9.0 (Visual Studio 2008)
|
|
#pragma push_macro("ARRAYSIZE")
|
|
#ifdef ARRAYSIZE
|
|
#undef ARRAYSIZE
|
|
#endif
|
|
#define HSPRITE WINDOWS_HSPRITE
|
|
#endif
|