annotate arogue7/arogue7.vcxproj @ 280:70aa5808c782

Fix potential segfaults at restore related to ctime(). In some games, restore() passes the result of ctime() to mvprintw() or some other variadic message-formatting function. If ctime() has not been declared properly, its return type is inferred to be int instead of char *. This does not cause a warning because the compiler does not know the correct type of variadic arguments. On platforms where ints and pointers are not the same size, this can, probably depending on alignment, result in a segfault that is not easy to trace. Including time.h fixes the problem. Some games manually declared ctime() and avoided the bug. These declarations have also been replaced with the include.
author John "Elwin" Edwards
date Fri, 15 Sep 2017 20:51:10 -0400
parents 23d2e2bf812f
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
208
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
1 <?xml version="1.0" encoding="utf-8"?>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
2 <Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
3 <ItemGroup Label="ProjectConfigurations">
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
4 <ProjectConfiguration Include="Debug|Win32">
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
5 <Configuration>Debug</Configuration>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
6 <Platform>Win32</Platform>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
7 </ProjectConfiguration>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
8 <ProjectConfiguration Include="Release|Win32">
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
9 <Configuration>Release</Configuration>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
10 <Platform>Win32</Platform>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
11 </ProjectConfiguration>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
12 <ProjectConfiguration Include="Debug|x64">
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
13 <Configuration>Debug</Configuration>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
14 <Platform>x64</Platform>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
15 </ProjectConfiguration>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
16 <ProjectConfiguration Include="Release|x64">
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
17 <Configuration>Release</Configuration>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
18 <Platform>x64</Platform>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
19 </ProjectConfiguration>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
20 </ItemGroup>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
21 <PropertyGroup Label="Globals">
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
22 <ProjectGuid>{93C1D81C-0424-4DC3-8671-D1B5F4BB6E5F}</ProjectGuid>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
23 <RootNamespace>arogue7</RootNamespace>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
24 <WindowsTargetPlatformVersion>8.1</WindowsTargetPlatformVersion>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
25 </PropertyGroup>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
26 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
27 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
28 <ConfigurationType>Application</ConfigurationType>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
29 <UseDebugLibraries>true</UseDebugLibraries>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
30 <PlatformToolset>v140</PlatformToolset>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
31 <CharacterSet>MultiByte</CharacterSet>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
32 </PropertyGroup>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
33 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
34 <ConfigurationType>Application</ConfigurationType>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
35 <UseDebugLibraries>false</UseDebugLibraries>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
36 <PlatformToolset>v140</PlatformToolset>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
37 <WholeProgramOptimization>true</WholeProgramOptimization>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
38 <CharacterSet>MultiByte</CharacterSet>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
39 </PropertyGroup>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
40 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
41 <ConfigurationType>Application</ConfigurationType>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
42 <UseDebugLibraries>true</UseDebugLibraries>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
43 <PlatformToolset>v140</PlatformToolset>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
44 <CharacterSet>MultiByte</CharacterSet>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
45 </PropertyGroup>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
46 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
47 <ConfigurationType>Application</ConfigurationType>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
48 <UseDebugLibraries>false</UseDebugLibraries>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
49 <PlatformToolset>v140</PlatformToolset>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
50 <WholeProgramOptimization>true</WholeProgramOptimization>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
51 <CharacterSet>MultiByte</CharacterSet>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
52 </PropertyGroup>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
53 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
54 <ImportGroup Label="ExtensionSettings">
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
55 </ImportGroup>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
56 <ImportGroup Label="Shared">
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
57 </ImportGroup>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
58 <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
59 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
60 </ImportGroup>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
61 <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
62 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
63 </ImportGroup>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
64 <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
65 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
66 </ImportGroup>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
67 <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
68 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
69 </ImportGroup>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
70 <PropertyGroup Label="UserMacros" />
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
71 <PropertyGroup />
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
72 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
73 <ClCompile>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
74 <WarningLevel>Level3</WarningLevel>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
75 <Optimization>Disabled</Optimization>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
76 <SDLCheck>true</SDLCheck>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
77 <AdditionalIncludeDirectories>..\pdcurses</AdditionalIncludeDirectories>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
78 <PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;SCOREFILE="arogue7.scr";SAVEDIR=".";%(PreprocessorDefinitions)</PreprocessorDefinitions>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
79 </ClCompile>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
80 <Link>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
81 <GenerateDebugInformation>true</GenerateDebugInformation>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
82 <AdditionalLibraryDirectories>..\pdcurses</AdditionalLibraryDirectories>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
83 <AdditionalDependencies>pdcurses.lib;%(AdditionalDependencies)</AdditionalDependencies>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
84 </Link>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
85 </ItemDefinitionGroup>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
86 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
87 <ClCompile>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
88 <WarningLevel>Level3</WarningLevel>