File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 14
14
#if QUILL_CPLUSPLUS >= 202002L
15
15
#if QUILL_HAS_INCLUDE(<source_location>)
16
16
#include < source_location>
17
+ #define QUILL_HAS_SOURCE_LOCATION 1
17
18
#elif QUILL_HAS_INCLUDE(<experimental/source_location>)
18
19
#include < experimental/source_location>
20
+ #define QUILL_HAS_EXPERIMENTAL_SOURCE_LOCATION 1
19
21
#else
20
22
#error \
21
23
" MacroFree header requires <source_location> or <experimental/source_location> to be available"
29
31
30
32
QUILL_BEGIN_NAMESPACE
31
33
32
- // clang-format off
33
- #if QUILL_HAS_INCLUDE(<source_location>)
34
- using source_location_t = std::source_location;
35
- #elif QUILL_HAS_INCLUDE(<experimental/source_location>)
36
- using source_location_t = std::experimental::source_location;
34
+ #if defined(QUILL_HAS_SOURCE_LOCATION)
35
+ using source_location_t = std::source_location;
36
+ #elif defined(QUILL_HAS_EXPERIMENTAL_SOURCE_LOCATION)
37
+ using source_location_t = std::experimental::source_location;
37
38
#endif
38
- // clang-format on
39
39
40
40
/* *
41
41
* Tag structure for log messages
You can’t perform that action at this time.
0 commit comments