Build Lua as C

Linux distros nearly always package Lua built as C, so build it as C on
Windows as well to cut down on needless differences.
This commit is contained in:
Thomas Goyne 2013-04-21 14:15:39 -07:00
parent 8cd1a0a9d4
commit 9667a7b21f
1 changed files with 3 additions and 2 deletions

View File

@ -4,6 +4,7 @@
<ProjectGuid>{5391A8B1-9C70-4DC4-92AD-D3E34C6B803F}</ProjectGuid>
<RootNamespace>lua51</RootNamespace>
</PropertyGroup>
<!-- Aegisub project configuration -->
<PropertyGroup Label="AegisubConfiguration">
<AegisubProjectType>lib</AegisubProjectType>
@ -12,14 +13,14 @@
<ImportGroup Label="PropertySheets">
<Import Project="$(MSBuildThisFileDirectory)..\aegisub.props" />
</ImportGroup>
<!-- Project specific configuration -->
<ItemDefinitionGroup>
<ClCompile>
<PreprocessorDefinitions>LUA_BUILD_AS_DLL;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<CompileAs>CompileAsCpp</CompileAs>
<!-- We want to build Lua as C++ to get C++ name mangling -->
</ClCompile>
</ItemDefinitionGroup>
<!-- Source files -->
<ItemGroup>
<ClCompile Include="$(SrcDir)lapi.c" />