fix more warning
This commit is contained in:
parent
ae1d01814a
commit
b37ecda187
@ -67,32 +67,32 @@
|
|||||||
</ImportGroup>
|
</ImportGroup>
|
||||||
<PropertyGroup Label="UserMacros" />
|
<PropertyGroup Label="UserMacros" />
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||||
<OutDir>../bin/vc2013/</OutDir>
|
<OutDir>../bin/</OutDir>
|
||||||
<IncludePath>..\..\include;$(IncludePath)</IncludePath>
|
<IncludePath>..\..\include;$(IncludePath)</IncludePath>
|
||||||
<SourcePath>..\..\source;$(VC_SourcePath);</SourcePath>
|
<SourcePath>..\..\source;$(VC_SourcePath);</SourcePath>
|
||||||
<TargetName>$(ProjectName)_$(PlatformToolset)_$(Configuration)_$(PlatformShortName)</TargetName>
|
<TargetName>$(ProjectName)_$(PlatformToolset)_$(Configuration)_$(PlatformShortName)</TargetName>
|
||||||
<IntDir>..\..\..\temp\$(PlatformToolset)_$(Configuration)_$(PlatformShortName)\</IntDir>
|
<IntDir>..\..\..\temp\$(ProjectName)\$(PlatformToolset)_$(Configuration)_$(PlatformShortName)\</IntDir>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||||
<IncludePath>..\..\include;$(IncludePath)</IncludePath>
|
<IncludePath>..\..\include;$(IncludePath)</IncludePath>
|
||||||
<SourcePath>..\..\source;$(VC_SourcePath);</SourcePath>
|
<SourcePath>..\..\source;$(VC_SourcePath);</SourcePath>
|
||||||
<OutDir>../bin/vc2013/</OutDir>
|
<OutDir>../bin/</OutDir>
|
||||||
<TargetName>$(ProjectName)_$(PlatformToolset)_$(Configuration)_$(PlatformShortName)</TargetName>
|
<TargetName>$(ProjectName)_$(PlatformToolset)_$(Configuration)_$(PlatformShortName)</TargetName>
|
||||||
<IntDir>..\..\..\temp\$(PlatformToolset)_$(Configuration)_$(PlatformShortName)\</IntDir>
|
<IntDir>..\..\..\temp\$(ProjectName)\$(PlatformToolset)_$(Configuration)_$(PlatformShortName)\</IntDir>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||||
<OutDir>../bin/vc2013/</OutDir>
|
<OutDir>../bin/</OutDir>
|
||||||
<IncludePath>..\..\include;$(IncludePath)</IncludePath>
|
<IncludePath>..\..\include;$(IncludePath)</IncludePath>
|
||||||
<SourcePath>..\..\source;$(VC_SourcePath);</SourcePath>
|
<SourcePath>..\..\source;$(VC_SourcePath);</SourcePath>
|
||||||
<TargetName>$(ProjectName)_$(PlatformToolset)_$(Configuration)_$(PlatformShortName)</TargetName>
|
<TargetName>$(ProjectName)_$(PlatformToolset)_$(Configuration)_$(PlatformShortName)</TargetName>
|
||||||
<IntDir>..\..\..\temp\$(PlatformToolset)_$(Configuration)_$(PlatformShortName)\</IntDir>
|
<IntDir>..\..\..\temp\$(ProjectName)\$(PlatformToolset)_$(Configuration)_$(PlatformShortName)\</IntDir>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||||
<IncludePath>..\..\include;$(IncludePath)</IncludePath>
|
<IncludePath>..\..\include;$(IncludePath)</IncludePath>
|
||||||
<SourcePath>..\..\source;$(VC_SourcePath);</SourcePath>
|
<SourcePath>..\..\source;$(VC_SourcePath);</SourcePath>
|
||||||
<OutDir>../bin/vc2013/</OutDir>
|
<OutDir>../bin/</OutDir>
|
||||||
<TargetName>$(ProjectName)_$(PlatformToolset)_$(Configuration)_$(PlatformShortName)</TargetName>
|
<TargetName>$(ProjectName)_$(PlatformToolset)_$(Configuration)_$(PlatformShortName)</TargetName>
|
||||||
<IntDir>..\..\..\temp\$(PlatformToolset)_$(Configuration)_$(PlatformShortName)\</IntDir>
|
<IntDir>..\..\..\temp\$(ProjectName)\$(PlatformToolset)_$(Configuration)_$(PlatformShortName)\</IntDir>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||||
<ClCompile>
|
<ClCompile>
|
||||||
|
@ -13,6 +13,21 @@
|
|||||||
#ifndef NANA_CONFIG_HPP
|
#ifndef NANA_CONFIG_HPP
|
||||||
#define NANA_CONFIG_HPP
|
#define NANA_CONFIG_HPP
|
||||||
|
|
||||||
|
|
||||||
|
#if defined(_MSC_VER)
|
||||||
|
#define _SCL_SECURE_NO_WARNINGS
|
||||||
|
#define _CRT_SECURE_NO_DEPRECATE
|
||||||
|
#pragma warning(disable : 4996)
|
||||||
|
#if (_MSC_VER == 1900)
|
||||||
|
// google: break any code that tries to use codecvt<char16_t> or codecvt<char32_t>.
|
||||||
|
// google: It appears the C++ libs haven't been compiled with native char16_t/char32_t support.
|
||||||
|
// google: Those definitions are for codecvt<wchar_t>::id, codecvt<unsigned short>::id and codecvt<char>::id respectively.
|
||||||
|
// However, the codecvt<char16_t>::id and codecvt<char32_t>::id definitions aren't there, and indeed, if you look at locale0.cpp in the CRT source code you'll see they're not defined at all.
|
||||||
|
// google: That's a known issue, tracked by an active bug (DevDiv#1060849). We were able to update the STL's headers in response to char16_t/char32_t, but we still need to update the separately compiled sources.
|
||||||
|
#define STD_CODECVT_NOT_SUPPORTED
|
||||||
|
#endif // _MSC_VER == 1900
|
||||||
|
#endif // _MSVC
|
||||||
|
|
||||||
//Select platform automatically
|
//Select platform automatically
|
||||||
#if defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
|
#if defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
|
||||||
//Windows:
|
//Windows:
|
||||||
@ -35,7 +50,7 @@
|
|||||||
#define PLATFORM_SPEC_HPP <nana/detail/linux_X11/platform_spec.hpp>
|
#define PLATFORM_SPEC_HPP <nana/detail/linux_X11/platform_spec.hpp>
|
||||||
#define STD_CODECVT_NOT_SUPPORTED
|
#define STD_CODECVT_NOT_SUPPORTED
|
||||||
#else
|
#else
|
||||||
# static_assert(false, "Only Windows and Unix are support now");
|
# static_assert(false, "Only Windows and Unix are supported now");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(NANA_MINGW) || defined(NANA_LINUX)
|
#if defined(NANA_MINGW) || defined(NANA_LINUX)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user