This is merely to keep the VC++ Debug builds happy and addresses cases
where variables where being used without being initalized. There should be
no visible changes apart from non-functional side effects to the users of
Release builds.
Thanks to @fabiosarts for finding and reporting these problems.
Thanks to @LevShisterov for suggeting how to fix geiger.cpp files, which I
followed closely except using <= 800 instead of < 800.
Added Module definition File to linker input for all configurations,
previously only added to debug as spotted by @ripieces Also changed the
relative pathing to $(ProjectDir)..\..\utils\smdlexp\smdlexp.def ->
Cleaner and makes more sense :)
Added a relative path to the required Module definition File smdlexp.def
found in halflife\utils\smdlexp
Although the project will compile fine without this step, 3DSMAX will
fail to load the plug-in giving errors such as "smdlexp.dle doesn't
implement LibVersion"
It seems that smdlexp.def needs to be explicitly defined in the vcxproj
in order to work.
Normalized line endings by touching (touch) the dsp files, no changes to
the files were made.
This is in order we can see actual modified lines in case s.o. modifies
the files.
The files will have CRLF as EOL on checkout due to the .gitattributes
setting.
fixesValveSoftware/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.