[ox/std] Move ox::defines::OS to ox::OS

This commit is contained in:
Gary Talent 2022-02-12 14:22:28 -06:00
parent 8847b2b2ed
commit 610dc2ceca

View File

@ -8,7 +8,20 @@
#pragma once
namespace ox::defines {
namespace ox {
enum class OS {
BareMetal,
NetBSD,
OpenBSD,
FreeBSD,
DragonFlyBSD,
Linux,
Darwin,
Windows
};
namespace defines {
#if defined(OX_NODEBUG)
constexpr bool NoDebug = true;
@ -42,17 +55,6 @@ constexpr auto BigEndian = false;
constexpr auto LittleEndian = true;
#endif
enum class OS {
BareMetal,
NetBSD,
OpenBSD,
FreeBSD,
DragonFlyBSD,
Linux,
Darwin,
Windows
};
#if defined(__FreeBSD__)
constexpr OS OS = OS::FreeBSD;
#define OX_OS_FreeBSD
@ -80,3 +82,4 @@ constexpr OS OS = OS::BareMetal;
#endif
}
}