summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2025-03-25 08:21:17 +1100
committerMaxime Coste <mawww@kakoune.org>2025-03-25 21:28:00 +1100
commit04accbb26734fe3f91443ee8567d275a09020f27 (patch)
treeabacf136f1e1a49ab1a095f2c4e281ef53fac4bb
parent807e04654cb52e128d40f9f05365104d9e7f51d6 (diff)
Bump build to c++23
-rw-r--r--Makefile2
-rw-r--r--src/file.hh1
2 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 41c0ed9e..b1f70826 100644
--- a/Makefile
+++ b/Makefile
@@ -63,7 +63,7 @@ LDFLAGS-os-SunOS = -lsocket -rdynamic
CPPFLAGS-os-Windows = -D_XOPEN_SOURCE=700
LIBS-os-Windows = -ldbghelp
-CXXFLAGS-default = -std=c++2a -Wall -Wextra -pedantic -Wno-unused-parameter -Wno-sign-compare
+CXXFLAGS-default = -std=c++2b -Wall -Wextra -pedantic -Wno-unused-parameter -Wno-sign-compare
compiler = $(shell $(CXX) --version | grep -E -o 'clang|g\+\+|c\+\+' | head -1)
compiler != $(CXX) --version | grep -E -o 'clang|g\+\+|c\+\+' | head -1
diff --git a/src/file.hh b/src/file.hh
index 0630a2f7..f5dfa112 100644
--- a/src/file.hh
+++ b/src/file.hh
@@ -13,6 +13,7 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <cstring>
+#include <exception>
namespace Kakoune
{