[ox/std] Fix Linux build
This commit is contained in:
parent
8dcd350671
commit
0bcb78d3da
1
deps/ox/src/ox/std/CMakeLists.txt
vendored
1
deps/ox/src/ox/std/CMakeLists.txt
vendored
@ -54,6 +54,7 @@ target_compile_definitions(
|
||||
|
||||
target_link_libraries(
|
||||
OxStd PUBLIC
|
||||
$<$<BOOL:${OX_USE_STDLIB}>:dl>
|
||||
$<$<CXX_COMPILER_ID:GNU>:gcc>
|
||||
OxTraceHook
|
||||
)
|
||||
|
9
deps/ox/src/ox/std/fmt.hpp
vendored
9
deps/ox/src/ox/std/fmt.hpp
vendored
@ -40,13 +40,18 @@ constexpr const char *stringify(const String &s) noexcept {
|
||||
}
|
||||
|
||||
#if __has_include(<string>)
|
||||
constexpr const char *stringify(const std::string &s) noexcept {
|
||||
#if __cplusplus >= 202002L
|
||||
constexpr
|
||||
#else
|
||||
inline
|
||||
#endif
|
||||
const char *stringify(const std::string &s) noexcept {
|
||||
return s.c_str();
|
||||
}
|
||||
#endif
|
||||
|
||||
#if __has_include(<QString>)
|
||||
constexpr const char *stringify(const QString &s) noexcept {
|
||||
inline const char *stringify(const QString &s) noexcept {
|
||||
return s.toUtf8();
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user