mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-06 22:25:41 +12:00
Fix helpers.hpp on Android
This commit is contained in:
parent
a5bed24273
commit
775a5f1559
1 changed files with 2 additions and 2 deletions
|
@ -125,7 +125,7 @@ namespace Helpers {
|
|||
return getBits<offset, bits, ValueT, ValueT>(value);
|
||||
}
|
||||
|
||||
#ifdef HELPERS_APPLE_CLANG
|
||||
#if defined(HELPERS_APPLE_CLANG) || defined(__ANDROID__)
|
||||
template <class To, class From>
|
||||
constexpr To bit_cast(const From& from) noexcept {
|
||||
return *reinterpret_cast<const To*>(&from);
|
||||
|
@ -154,4 +154,4 @@ namespace Helpers {
|
|||
// UDLs for memory size values
|
||||
constexpr size_t operator""_KB(unsigned long long int x) { return 1024ULL * x; }
|
||||
constexpr size_t operator""_MB(unsigned long long int x) { return 1024_KB * x; }
|
||||
constexpr size_t operator""_GB(unsigned long long int x) { return 1024_MB * x; }
|
||||
constexpr size_t operator""_GB(unsigned long long int x) { return 1024_MB * x; }
|
||||
|
|
Loading…
Add table
Reference in a new issue