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:
+1
-1
@@ -8,7 +8,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
namespace ox::buildinfo {
|
||||
namespace ox::defines {
|
||||
|
||||
#if defined(OX_USE_STDLIB)
|
||||
constexpr auto UseStdLib = true;
|
||||
|
||||
Vendored
+1
-1
@@ -72,7 +72,7 @@ constexpr inline uint64_t byteSwap(uint64_t i) {
|
||||
*/
|
||||
template<typename T>
|
||||
constexpr inline T bigEndianAdapt(T i) {
|
||||
if constexpr(ox::buildinfo::BigEndian) {
|
||||
if constexpr(ox::defines::BigEndian) {
|
||||
return byteSwap(i);
|
||||
} else {
|
||||
return i;
|
||||
|
||||
Reference in New Issue
Block a user