From 615596dfe92710a4c3538e8b8ba753e0b3648efa Mon Sep 17 00:00:00 2001 From: WerWolv Date: Thu, 2 Nov 2023 20:41:47 +0100 Subject: [PATCH] fix: Standard jthread detection --- dist/compiling/macos.md | 2 +- lib/external/jthread/includes/jthread.hpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dist/compiling/macos.md b/dist/compiling/macos.md index 3ca6d0976..931f697c4 100644 --- a/dist/compiling/macos.md +++ b/dist/compiling/macos.md @@ -1,6 +1,6 @@ ### Compiling ImHex on macOS -On macOS, ImHex is built through regular GCC and AppleClang. +On macOS, ImHex is built through regular GCC and LLVM clang. 1. Clone the repo using `git clone https://github.com/WerWolv/ImHex --recurse-submodules` 2. Install all the dependencies using `brew bundle --no-lock --file dist/Brewfile` diff --git a/lib/external/jthread/includes/jthread.hpp b/lib/external/jthread/includes/jthread.hpp index 12c19d5ed..78b23f66d 100644 --- a/lib/external/jthread/includes/jthread.hpp +++ b/lib/external/jthread/includes/jthread.hpp @@ -1,7 +1,7 @@ #pragma once -#if __has_include() - #include +#if __cpp_lib_jthread >= 201911L + #include #else #include "../jthread/source/jthread.hpp" #endif \ No newline at end of file