Enable the logfile on 64-bit Windows.

It seems to work without any problems.

One use of a non-portable function was corrected in the process.
This commit is contained in:
John "Elwin" Edwards 2016-05-17 21:28:34 -04:00
parent c5f4f359ea
commit 63b2707739
8 changed files with 20 additions and 20 deletions

View file

@ -246,7 +246,7 @@ void writelog(int amount, int flags, char monst)
return;
#ifdef LOGFILE
if (lfd >= 0)
logfi = fdopen(lfd, "a");
logfi = md_fdopen(lfd, "a");
else
return;
if (logfi == NULL)

View file

@ -90,7 +90,7 @@
<Optimization>Disabled</Optimization>
<SDLCheck>true</SDLCheck>
<AdditionalIncludeDirectories>..\pdcurses</AdditionalIncludeDirectories>
<PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;SCOREFILE="rogue4.scr";SAVEDIR=".";%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;SCOREFILE="rogue4.scr";LOGFILE="rogue4.log";SAVEDIR=".";%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<Link>
<GenerateDebugInformation>true</GenerateDebugInformation>
@ -124,7 +124,7 @@
<IntrinsicFunctions>true</IntrinsicFunctions>
<SDLCheck>true</SDLCheck>
<AdditionalIncludeDirectories>..\pdcurses</AdditionalIncludeDirectories>
<PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;SCOREFILE="rogue4.scr";SAVEDIR=".";%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;SCOREFILE="rogue4.scr";LOGFILE="rogue4.log";SAVEDIR=".";%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<Link>
<GenerateDebugInformation>true</GenerateDebugInformation>
@ -176,4 +176,4 @@
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>
</Project>