Change buildinfo namespace to defines
Defines better reflects that these are from the defines given for the current file's compile options, not the options used when building the Ox libraries being linked against.
This commit is contained in:
2
deps/ox/src/ox/__buildinfo/defines.hpp
vendored
2
deps/ox/src/ox/__buildinfo/defines.hpp
vendored
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
namespace ox::buildinfo {
|
namespace ox::defines {
|
||||||
|
|
||||||
#if defined(OX_USE_STDLIB)
|
#if defined(OX_USE_STDLIB)
|
||||||
constexpr auto UseStdLib = true;
|
constexpr auto UseStdLib = true;
|
||||||
|
2
deps/ox/src/ox/std/byteswap.hpp
vendored
2
deps/ox/src/ox/std/byteswap.hpp
vendored
@ -72,7 +72,7 @@ constexpr inline uint64_t byteSwap(uint64_t i) {
|
|||||||
*/
|
*/
|
||||||
template<typename T>
|
template<typename T>
|
||||||
constexpr inline T bigEndianAdapt(T i) {
|
constexpr inline T bigEndianAdapt(T i) {
|
||||||
if constexpr(ox::buildinfo::BigEndian) {
|
if constexpr(ox::defines::BigEndian) {
|
||||||
return byteSwap(i);
|
return byteSwap(i);
|
||||||
} else {
|
} else {
|
||||||
return i;
|
return i;
|
||||||
|
Reference in New Issue
Block a user