From aa0f59453eb4ecbadbcf5959ce14a3f0371d396d Mon Sep 17 00:00:00 2001 From: Neil Date: Sun, 28 Apr 2019 08:46:10 +1000 Subject: Switch from /std:c++latest to /std:c++17 as Visual C++ 2019 now includes some C++20 features. --- doc/ScintillaHistory.html | 3 +++ test/unit/UnitTester.vcxproj | 5 ++++- test/unit/test.mak | 2 +- win32/SciLexer.vcxproj | 8 ++++---- win32/scintilla.mak | 2 +- 5 files changed, 13 insertions(+), 7 deletions(-) diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html index 0bd92761d..e69d419b9 100644 --- a/doc/ScintillaHistory.html +++ b/doc/ScintillaHistory.html @@ -561,6 +561,9 @@ Released 17 April 2019.
  • + For Visual C++ 2019, /std:c++latest now includes some C++20 features so switch to /std:c++17. +
  • +
  • Fix bug where changing identifier sets in lexers preserved previous identifiers.
  • diff --git a/test/unit/UnitTester.vcxproj b/test/unit/UnitTester.vcxproj index 82f633dd7..0c4d2fb5f 100644 --- a/test/unit/UnitTester.vcxproj +++ b/test/unit/UnitTester.vcxproj @@ -89,7 +89,7 @@ Disabled _CRT_SECURE_NO_WARNINGS=1;_HAS_AUTO_PTR_ETC=1;_SCL_SECURE_NO_WARNINGS=1;WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) ..\..\include\;..\..\src\;..\..\lexlib\ - stdcpplatest + stdcpp17 Console @@ -104,6 +104,7 @@ Disabled _CRT_SECURE_NO_WARNINGS=1;_HAS_AUTO_PTR_ETC=1;_SCL_SECURE_NO_WARNINGS=1;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) ..\..\include\;..\..\src\;..\..\lexlib\ + stdcpp17 Console @@ -120,6 +121,7 @@ true _CRT_SECURE_NO_WARNINGS=1;_HAS_AUTO_PTR_ETC=1;_SCL_SECURE_NO_WARNINGS=1;WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) ..\..\include\;..\..\src\;..\..\lexlib\ + stdcpp17 Console @@ -138,6 +140,7 @@ true _CRT_SECURE_NO_WARNINGS=1;_HAS_AUTO_PTR_ETC=1;_SCL_SECURE_NO_WARNINGS=1;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) ..\..\include\;..\..\src\;..\..\lexlib\ + stdcpp17 Console diff --git a/test/unit/test.mak b/test/unit/test.mak index fc4bb1671..42b17e556 100644 --- a/test/unit/test.mak +++ b/test/unit/test.mak @@ -6,7 +6,7 @@ EXE = unitTest.exe INCLUDEDIRS = /I../../include /I../../src /I../../lexlib -CXXFLAGS = /EHsc /std:c++latest /D_HAS_AUTO_PTR_ETC=1 /wd 4805 $(INCLUDEDIRS) +CXXFLAGS = /EHsc /std:c++17 /D_HAS_AUTO_PTR_ETC=1 /wd 4805 $(INCLUDEDIRS) # Files in this directory containing tests TESTSRC=test*.cxx diff --git a/win32/SciLexer.vcxproj b/win32/SciLexer.vcxproj index 91c85139b..300cd2044 100644 --- a/win32/SciLexer.vcxproj +++ b/win32/SciLexer.vcxproj @@ -72,7 +72,7 @@ _DEBUG;%(PreprocessorDefinitions) - stdcpplatest + stdcpp17 Default @@ -81,7 +81,7 @@ _DEBUG;%(PreprocessorDefinitions) - stdcpplatest + stdcpp17 Default @@ -92,7 +92,7 @@ true true NDEBUG;%(PreprocessorDefinitions) - stdcpplatest + stdcpp17 true @@ -104,7 +104,7 @@ true true NDEBUG;%(PreprocessorDefinitions) - stdcpplatest + stdcpp17 true diff --git a/win32/scintilla.mak b/win32/scintilla.mak index 217ba1131..8c72176c6 100644 --- a/win32/scintilla.mak +++ b/win32/scintilla.mak @@ -25,7 +25,7 @@ XP_LINK=-SUBSYSTEM:WINDOWS,5.01 !ENDIF CRTFLAGS=-D_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES=1 -D_CRT_SECURE_NO_DEPRECATE=1 -D_SCL_SECURE_NO_WARNINGS=1 $(XP_DEFINE) -CXXFLAGS=-Zi -TP -MP -W4 -EHsc -std:c++latest $(CRTFLAGS) +CXXFLAGS=-Zi -TP -MP -W4 -EHsc -std:c++17 $(CRTFLAGS) CXXDEBUG=-Od -MTd -DDEBUG CXXNDEBUG=-O1 -MT -DNDEBUG -GL NAME=-Fo -- cgit v1.2.3