Skip to content

Commit

Permalink
ICU-21107 Specify language standard versions C11 & C++17 also for MSVC.
Browse files Browse the repository at this point in the history
There were until now no versions specified at all, relying on the
default (or commandline overrides) to be sufficiently recent.
  • Loading branch information
roubert committed Jan 16, 2024
1 parent 214ae60 commit 078b88a
Show file tree
Hide file tree
Showing 76 changed files with 319 additions and 19 deletions.
2 changes: 2 additions & 0 deletions icu4c/source/common/common.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
<TypeLibraryName>$(OutDir)\icuuc.tlb</TypeLibraryName>
</Midl>
<ClCompile>
<LanguageStandard>stdcpp17</LanguageStandard>
<LanguageStandard_C>stdc11</LanguageStandard_C>
<PreprocessorDefinitions>U_ATTRIBUTE_DEPRECATED=;U_COMMON_IMPLEMENTATION;U_PLATFORM_USES_ONLY_WIN32_API=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<DisableLanguageExtensions>false</DisableLanguageExtensions>
<WarningLevel>Level3</WarningLevel>
Expand Down
2 changes: 2 additions & 0 deletions icu4c/source/common/common_uwp.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@
<TypeLibraryName>$(OutDir)\icuuc.tlb</TypeLibraryName>
</Midl>
<ClCompile>
<LanguageStandard>stdcpp17</LanguageStandard>
<LanguageStandard_C>stdc11</LanguageStandard_C>
<AdditionalIncludeDirectories>..\..\include;..\common;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<!-- U_DISABLE_RENAMING -->
<!-- U_HIDE_DRAFT_API & U_HIDE_DEPRECATED_API -->
Expand Down
4 changes: 3 additions & 1 deletion icu4c/source/extra/uconv/uconv.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,11 @@
<TypeLibraryName>$(OutDir)\uconv.tlb</TypeLibraryName>
</Midl>
<ClCompile>
<LanguageStandard>stdcpp17</LanguageStandard>
<LanguageStandard_C>stdc11</LanguageStandard_C>
<WarningLevel>Level3</WarningLevel>
<CompileAs>Default</CompileAs>
<DisableLanguageExtensions>true</DisableLanguageExtensions>
<DisableLanguageExtensions>false</DisableLanguageExtensions>
<AdditionalIncludeDirectories>..\..\..\include;..\..\common;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>UCONVMSG_LINK;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PrecompiledHeaderOutputFile>$(OutDir)\uconv.pch</PrecompiledHeaderOutputFile>
Expand Down
2 changes: 2 additions & 0 deletions icu4c/source/i18n/i18n.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
<TypeLibraryName>$(OutDir)\icuin.tlb</TypeLibraryName>
</Midl>
<ClCompile>
<LanguageStandard>stdcpp17</LanguageStandard>
<LanguageStandard_C>stdc11</LanguageStandard_C>
<PreprocessorDefinitions>U_ATTRIBUTE_DEPRECATED=;U_I18N_IMPLEMENTATION;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<DisableLanguageExtensions>false</DisableLanguageExtensions>
<WarningLevel>Level3</WarningLevel>
Expand Down
2 changes: 2 additions & 0 deletions icu4c/source/i18n/i18n_uwp.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@
<SuppressStartupBanner>true</SuppressStartupBanner>
</Midl>
<ClCompile>
<LanguageStandard>stdcpp17</LanguageStandard>
<LanguageStandard_C>stdc11</LanguageStandard_C>
<AdditionalIncludeDirectories>..\..\include;..\common;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<!-- U_DISABLE_RENAMING -->
<!-- U_HIDE_DRAFT_API & U_HIDE_DEPRECATED_API -->
Expand Down
2 changes: 2 additions & 0 deletions icu4c/source/io/io.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
<TypeLibraryName>$(OutDir)\icuio.tlb</TypeLibraryName>
</Midl>
<ClCompile>
<LanguageStandard>stdcpp17</LanguageStandard>
<LanguageStandard_C>stdc11</LanguageStandard_C>
<AdditionalIncludeDirectories>..\..\include;..\common;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>U_IO_IMPLEMENTATION;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<DisableLanguageExtensions>false</DisableLanguageExtensions>
Expand Down
2 changes: 2 additions & 0 deletions icu4c/source/layoutex/layoutex.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
<!-- Options that are common to *all* project configurations -->
<ItemDefinitionGroup>
<ClCompile>
<LanguageStandard>stdcpp17</LanguageStandard>
<LanguageStandard_C>stdc11</LanguageStandard_C>
<AdditionalIncludeDirectories>..\..\include;..\common;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>U_LAYOUTEX_IMPLEMENTATION;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<WarningLevel>Level3</WarningLevel>
Expand Down
2 changes: 2 additions & 0 deletions icu4c/source/samples/break/break.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
<!-- Options that are common to *all* project configurations -->
<ItemDefinitionGroup>
<ClCompile>
<LanguageStandard>stdcpp17</LanguageStandard>
<LanguageStandard_C>stdc11</LanguageStandard_C>
<AdditionalIncludeDirectories>..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<WarningLevel>Level3</WarningLevel>
</ClCompile>
Expand Down
2 changes: 2 additions & 0 deletions icu4c/source/samples/cal/cal.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
<!-- Options that are common to *all* project configurations -->
<ItemDefinitionGroup>
<ClCompile>
<LanguageStandard>stdcpp17</LanguageStandard>
<LanguageStandard_C>stdc11</LanguageStandard_C>
<AdditionalIncludeDirectories>..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<WarningLevel>Level3</WarningLevel>
<DisableLanguageExtensions>false</DisableLanguageExtensions>
Expand Down
4 changes: 3 additions & 1 deletion icu4c/source/samples/case/case.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,11 @@
<!-- Options that are common to *all* project configurations -->
<ItemDefinitionGroup>
<ClCompile>
<LanguageStandard>stdcpp17</LanguageStandard>
<LanguageStandard_C>stdc11</LanguageStandard_C>
<AdditionalIncludeDirectories>..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<WarningLevel>Level3</WarningLevel>
<DisableLanguageExtensions>true</DisableLanguageExtensions>
<DisableLanguageExtensions>false</DisableLanguageExtensions>
</ClCompile>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
Expand Down
6 changes: 6 additions & 0 deletions icu4c/source/samples/citer/citer.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">.\x64\Release\</IntDir>
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</LinkIncremental>
</PropertyGroup>
<ItemDefinitionGroup>
<ClCompile>
<LanguageStandard>stdcpp17</LanguageStandard>
<LanguageStandard_C>stdc11</LanguageStandard_C>
</ClCompile>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<AdditionalIncludeDirectories>..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
Expand Down
6 changes: 6 additions & 0 deletions icu4c/source/samples/coll/coll.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">.\x64\Debug\</IntDir>
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</LinkIncremental>
</PropertyGroup>
<ItemDefinitionGroup>
<ClCompile>
<LanguageStandard>stdcpp17</LanguageStandard>
<LanguageStandard_C>stdc11</LanguageStandard_C>
</ClCompile>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<Midl>
<TypeLibraryName>.\x86\Release/coll.tlb</TypeLibraryName>
Expand Down
6 changes: 6 additions & 0 deletions icu4c/source/samples/csdet/csdet.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">.\x64\Release\</IntDir>
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</LinkIncremental>
</PropertyGroup>
<ItemDefinitionGroup>
<ClCompile>
<LanguageStandard>stdcpp17</LanguageStandard>
<LanguageStandard_C>stdc11</LanguageStandard_C>
</ClCompile>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<AdditionalIncludeDirectories>../../../include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
Expand Down
6 changes: 6 additions & 0 deletions icu4c/source/samples/date/date.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">.\x64\Debug\</IntDir>
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</LinkIncremental>
</PropertyGroup>
<ItemDefinitionGroup>
<ClCompile>
<LanguageStandard>stdcpp17</LanguageStandard>
<LanguageStandard_C>stdc11</LanguageStandard_C>
</ClCompile>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<Midl>
<TypeLibraryName>.\x86\Release/date.tlb</TypeLibraryName>
Expand Down
6 changes: 6 additions & 0 deletions icu4c/source/samples/datefmt/datefmt.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">.\x64\Release\</IntDir>
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</LinkIncremental>
</PropertyGroup>
<ItemDefinitionGroup>
<ClCompile>
<LanguageStandard>stdcpp17</LanguageStandard>
<LanguageStandard_C>stdc11</LanguageStandard_C>
</ClCompile>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<Midl>
<TypeLibraryName>.\x86\Debug/datefmt.tlb</TypeLibraryName>
Expand Down
6 changes: 6 additions & 0 deletions icu4c/source/samples/dtitvfmtsample/dtitvfmtsample.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,12 @@
<IntDir>.\x64\Release\</IntDir>
<TargetName>$(ProjectName)</TargetName>
</PropertyGroup>
<ItemDefinitionGroup>
<ClCompile>
<LanguageStandard>stdcpp17</LanguageStandard>
<LanguageStandard_C>stdc11</LanguageStandard_C>
</ClCompile>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
Expand Down
6 changes: 6 additions & 0 deletions icu4c/source/samples/dtptngsample/dtptngsample.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,12 @@
<IntDir>.\x64\Release\</IntDir>
<TargetName>$(ProjectName)</TargetName>
</PropertyGroup>
<ItemDefinitionGroup>
<ClCompile>
<LanguageStandard>stdcpp17</LanguageStandard>
<LanguageStandard_C>stdc11</LanguageStandard_C>
</ClCompile>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
Expand Down
6 changes: 6 additions & 0 deletions icu4c/source/samples/layout/layout.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">.\x64\Debug\</IntDir>
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</LinkIncremental>
</PropertyGroup>
<ItemDefinitionGroup>
<ClCompile>
<LanguageStandard>stdcpp17</LanguageStandard>
<LanguageStandard_C>stdc11</LanguageStandard_C>
</ClCompile>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<Midl>
<TypeLibraryName>.\x86\Release/layout.tlb</TypeLibraryName>
Expand Down
6 changes: 6 additions & 0 deletions icu4c/source/samples/legacy/legacy.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,12 @@
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">.\x64\Debug\</IntDir>
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</LinkIncremental>
</PropertyGroup>
<ItemDefinitionGroup>
<ClCompile>
<LanguageStandard>stdcpp17</LanguageStandard>
<LanguageStandard_C>stdc11</LanguageStandard_C>
</ClCompile>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<Midl>
<TypeLibraryName>.\x86\Release/legacy.tlb</TypeLibraryName>
Expand Down
6 changes: 6 additions & 0 deletions icu4c/source/samples/msgfmt/msgfmt.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">.\x64\Debug\</IntDir>
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</LinkIncremental>
</PropertyGroup>
<ItemDefinitionGroup>
<ClCompile>
<LanguageStandard>stdcpp17</LanguageStandard>
<LanguageStandard_C>stdc11</LanguageStandard_C>
</ClCompile>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<Midl>
<TypeLibraryName>.\x86\Release/msgfmt.tlb</TypeLibraryName>
Expand Down
6 changes: 6 additions & 0 deletions icu4c/source/samples/numfmt/numfmt.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">.\x64\Release\</IntDir>
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</LinkIncremental>
</PropertyGroup>
<ItemDefinitionGroup>
<ClCompile>
<LanguageStandard>stdcpp17</LanguageStandard>
<LanguageStandard_C>stdc11</LanguageStandard_C>
</ClCompile>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<Midl>
<TypeLibraryName>.\x86\Debug/numfmt.tlb</TypeLibraryName>
Expand Down
6 changes: 6 additions & 0 deletions icu4c/source/samples/plurfmtsample/plurfmtsample.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,12 @@
<IntDir>.\x64\Release\</IntDir>
<TargetName>$(ProjectName)</TargetName>
</PropertyGroup>
<ItemDefinitionGroup>
<ClCompile>
<LanguageStandard>stdcpp17</LanguageStandard>
<LanguageStandard_C>stdc11</LanguageStandard_C>
</ClCompile>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
Expand Down
6 changes: 6 additions & 0 deletions icu4c/source/samples/props/props.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">.\x64\Debug\</IntDir>
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</LinkIncremental>
</PropertyGroup>
<ItemDefinitionGroup>
<ClCompile>
<LanguageStandard>stdcpp17</LanguageStandard>
<LanguageStandard_C>stdc11</LanguageStandard_C>
</ClCompile>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<Midl>
<TypeLibraryName>.\x86\Release/props.tlb</TypeLibraryName>
Expand Down
6 changes: 6 additions & 0 deletions icu4c/source/samples/strsrch/strsrch.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">.\x64\Release\</IntDir>
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</LinkIncremental>
</PropertyGroup>
<ItemDefinitionGroup>
<ClCompile>
<LanguageStandard>stdcpp17</LanguageStandard>
<LanguageStandard_C>stdc11</LanguageStandard_C>
</ClCompile>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<Midl>
<TypeLibraryName>.\x86\Debug/strsrch.tlb</TypeLibraryName>
Expand Down
2 changes: 2 additions & 0 deletions icu4c/source/samples/translit/translit.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
<!-- Options that are common to *all* project configurations -->
<ItemDefinitionGroup>
<ClCompile>
<LanguageStandard>stdcpp17</LanguageStandard>
<LanguageStandard_C>stdc11</LanguageStandard_C>
<AdditionalIncludeDirectories>..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<WarningLevel>Level3</WarningLevel>
</ClCompile>
Expand Down
2 changes: 2 additions & 0 deletions icu4c/source/samples/uciter8/uciter8.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
<!-- Options that are common to *all* project configurations -->
<ItemDefinitionGroup>
<ClCompile>
<LanguageStandard>stdcpp17</LanguageStandard>
<LanguageStandard_C>stdc11</LanguageStandard_C>
<AdditionalIncludeDirectories>..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<WarningLevel>Level3</WarningLevel>
</ClCompile>
Expand Down
2 changes: 2 additions & 0 deletions icu4c/source/samples/ucnv/ucnv.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
<!-- Options that are common to *all* project configurations -->
<ItemDefinitionGroup>
<ClCompile>
<LanguageStandard>stdcpp17</LanguageStandard>
<LanguageStandard_C>stdc11</LanguageStandard_C>
<AdditionalIncludeDirectories>..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<WarningLevel>Level3</WarningLevel>
</ClCompile>
Expand Down
6 changes: 6 additions & 0 deletions icu4c/source/samples/udata/reader.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@
<IntDir>.\x64\Release\</IntDir>
<TargetName>$(ProjectName)</TargetName>
</PropertyGroup>
<ItemDefinitionGroup>
<ClCompile>
<LanguageStandard>stdcpp17</LanguageStandard>
<LanguageStandard_C>stdc11</LanguageStandard_C>
</ClCompile>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<Midl>
<TypeLibraryName>.\reader_Win32_Debug/reader.tlb</TypeLibraryName>
Expand Down
6 changes: 6 additions & 0 deletions icu4c/source/samples/udata/writer.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@
<IntDir>.\x64\Release\</IntDir>
<TargetName>$(ProjectName)</TargetName>
</PropertyGroup>
<ItemDefinitionGroup>
<ClCompile>
<LanguageStandard>stdcpp17</LanguageStandard>
<LanguageStandard_C>stdc11</LanguageStandard_C>
</ClCompile>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<Midl>
<TypeLibraryName>.\x86\Debug/writer.tlb</TypeLibraryName>
Expand Down
2 changes: 2 additions & 0 deletions icu4c/source/samples/ufortune/ufortune.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
<TypeLibraryName>$(OutDir)\ufortune.tlb</TypeLibraryName>
</Midl>
<ClCompile>
<LanguageStandard>stdcpp17</LanguageStandard>
<LanguageStandard_C>stdc11</LanguageStandard_C>
<AdditionalIncludeDirectories>..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>%(PreprocessorDefinitions)</PreprocessorDefinitions>
<WarningLevel>Level3</WarningLevel>
Expand Down
6 changes: 6 additions & 0 deletions icu4c/source/samples/ugrep/ugrep.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@
<LinkIncremental Condition="'$(Configuration)'=='Debug'">true</LinkIncremental>
<LinkIncremental Condition="'$(Configuration)'=='Release'">false</LinkIncremental>
</PropertyGroup>
<ItemDefinitionGroup>
<ClCompile>
<LanguageStandard>stdcpp17</LanguageStandard>
<LanguageStandard_C>stdc11</LanguageStandard_C>
</ClCompile>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<Midl>
<TypeLibraryName>.\x86\Release/ugrep.tlb</TypeLibraryName>
Expand Down
2 changes: 2 additions & 0 deletions icu4c/source/samples/uresb/uresb.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
<!-- Options that are common to *all* project configurations -->
<ItemDefinitionGroup>
<ClCompile>
<LanguageStandard>stdcpp17</LanguageStandard>
<LanguageStandard_C>stdc11</LanguageStandard_C>
<AdditionalIncludeDirectories>../../../include;../../tools/toolutil;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<WarningLevel>Level3</WarningLevel>
</ClCompile>
Expand Down
2 changes: 2 additions & 0 deletions icu4c/source/samples/ustring/ustring.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
<!-- Options that are common to *all* project configurations -->
<ItemDefinitionGroup>
<ClCompile>
<LanguageStandard>stdcpp17</LanguageStandard>
<LanguageStandard_C>stdc11</LanguageStandard_C>
<AdditionalIncludeDirectories>..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<WarningLevel>Level3</WarningLevel>
</ClCompile>
Expand Down
4 changes: 3 additions & 1 deletion icu4c/source/stubdata/stubdata.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,11 @@
<TypeLibraryName>$(OutDir)\icudt.tlb</TypeLibraryName>
</Midl>
<ClCompile>
<LanguageStandard>stdcpp17</LanguageStandard>
<LanguageStandard_C>stdc11</LanguageStandard_C>
<AdditionalIncludeDirectories>..\common;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>STUBDATA_BUILD;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<DisableLanguageExtensions>true</DisableLanguageExtensions>
<DisableLanguageExtensions>false</DisableLanguageExtensions>
<WarningLevel>Level3</WarningLevel>
<CompileAs>Default</CompileAs>
<PrecompiledHeaderOutputFile>$(OutDir)/icudt.pch</PrecompiledHeaderOutputFile>
Expand Down
2 changes: 2 additions & 0 deletions icu4c/source/test/cintltst/cintltst.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
<TypeLibraryName>$(OutDir)\cintltst.tlb</TypeLibraryName>
</Midl>
<ClCompile>
<LanguageStandard>stdcpp17</LanguageStandard>
<LanguageStandard_C>stdc11</LanguageStandard_C>
<WarningLevel>Level3</WarningLevel>
<CompileAs>Default</CompileAs>
<DisableLanguageExtensions>false</DisableLanguageExtensions>
Expand Down
Loading

0 comments on commit 078b88a

Please sign in to comment.