Skip to content

Commit

Permalink
catch2 workaround for recent issue under macOS (#3665)
Browse files Browse the repository at this point in the history
  • Loading branch information
conradsnicta committed Mar 25, 2024
1 parent 3231137 commit 36174fe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/mlpack/tests/catch.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@
// See e.g.:
// https://opensource.apple.com/source/CarbonHeaders/CarbonHeaders-18.1/TargetConditionals.h.auto.html
#ifdef __APPLE__
# ifndef __has_extension
# define __has_extension(x) 0
# endif
# include <TargetConditionals.h>
# if (defined(TARGET_OS_OSX) && TARGET_OS_OSX == 1) || \
(defined(TARGET_OS_MAC) && TARGET_OS_MAC == 1)
Expand Down

0 comments on commit 36174fe

Please sign in to comment.