From 4e1709a7c59cf11b164cc1adc170bbd45fe83a4a Mon Sep 17 00:00:00 2001 From: Aaron Liu Date: Thu, 1 Feb 2024 17:13:06 -0500 Subject: [PATCH] downgrade needed c++ to 17 --- README.md | 2 +- src/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3a03b62..4ec006f 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ The shell will expand wildcards. By default, thumbnails and file names will be d ### All platforms: Build from source -Our makefile currently only supports `g++`. It should be possible to compile `tiv` manually using any of your favorite compilers that support C++20 and Unix headers (`ioctl.h`, specifically) or `windows.h`. PRs are welcome. +Our makefile currently only supports `g++`. It should be possible to compile `tiv` manually using any of your favorite compilers that support C++17 and Unix headers (`ioctl.h` and `sysexits.h`, specifically) or `windows.h`. PRs are welcome. ```sh git clone https://github.com/stefanhaustein/TerminalImageViewer.git diff --git a/src/Makefile b/src/Makefile index b5786f8..6da40ed 100644 --- a/src/Makefile +++ b/src/Makefile @@ -12,7 +12,7 @@ prefix ?= /usr/local exec_prefix ?= $(prefix) bindir ?= $(exec_prefix)/bin -override CXXFLAGS += -std=c++2a -Wall -fexceptions +override CXXFLAGS += -std=c++17 -Wall -fexceptions override LDFLAGS += -pthread all: $(PROGNAME)