[ox/std] Move ox::defines::OS to ox::OS
This commit is contained in:
parent
8847b2b2ed
commit
610dc2ceca
27
deps/ox/src/ox/std/defines.hpp
vendored
27
deps/ox/src/ox/std/defines.hpp
vendored
@ -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
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user