Skip to content

Commit 5fb440a

Browse files
committed
Fix macro for __builtin_source_location
1 parent 7f697da commit 5fb440a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

projects/core/include/tempest/source_location.hpp

+2-4
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,8 @@
33

44
#include <tempest/int.hpp>
55

6-
// If (GNUC or CLANG) and not (_GLIBCXX_SRCLOC or _LIBCPP_SOURCE_LOCATION) OR SELF_HOSTED
7-
#if (defined(__GNUC__) || defined(__clang__)) && !defined(_GLIBCXX_SRCLOC) && !defined(_LIBCPP_SOURCE_LOCATION) || \
8-
defined(__STDC_HOSTED__)
9-
6+
// If (GNUC or CLANG) and not (_GLIBCXX_SRCLOC or _LIBCPP_SOURCE_LOCATION)
7+
#if (defined(__GNUC__) || defined(__clang__)) && !defined(_GLIBCXX_SRCLOC) && !defined(_LIBCPP_SOURCE_LOCATION)
108
// Known UB. If libstdc++ or libc++ changes the layout of std::source_location::__impl, this will break
119
// TODO: Investigate a robust way to test for this. Maybe C++26 static reflection will provide a solution.
1210
namespace std

0 commit comments

Comments
 (0)