Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-PLACET committed Apr 17, 2024
1 parent d19cbff commit d578426
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions include/sparrow/config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit d578426

Please sign in to comment.