diff --git a/include/sparrow/config.hpp b/include/sparrow/config.hpp index bc00a690..31a1c047 100644 --- a/include/sparrow/config.hpp +++ b/include/sparrow/config.hpp @@ -14,13 +14,13 @@ #pragma once -consteval bool is_apple_compiler() -{ #if defined(__apple_build_version__) - return true; +#define COMPILING_WITH_APPLE true; #else - return false; +#define COMPILING_WITH_APPLE false; #endif -} -constexpr bool COMPILING_WITH_APPLE = is_apple_compiler(); +consteval bool is_apple_compiler() +{ + return COMPILING_WITH_APPLE; +}