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.
(synced from 4c23a2d761)
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
namespace ox::buildinfo {
|
||||
namespace ox::defines {
|
||||
|
||||
#if defined(OX_USE_STDLIB)
|
||||
constexpr auto UseStdLib = true;
|
||||
|
||||
@@ -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