[ox] Get building with devkitARM again
This commit is contained in:
parent
22da505869
commit
b33cd06031
@ -6,7 +6,7 @@
|
|||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if __has_include(<filesystem>)
|
#if __has_include(<filesystem>) && defined(OX_USE_STDLIB)
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
9
deps/ox/src/ox/mc/intops.hpp
vendored
9
deps/ox/src/ox/mc/intops.hpp
vendored
@ -54,6 +54,11 @@ struct McInt {
|
|||||||
std::size_t length = 0;
|
std::size_t length = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#ifdef __GNUC__
|
||||||
|
#pragma GCC diagnostic push
|
||||||
|
#pragma GCC diagnostic ignored "-Wcast-align"
|
||||||
|
#endif
|
||||||
|
|
||||||
template<typename I>
|
template<typename I>
|
||||||
[[nodiscard]] McInt encodeInteger(I input) noexcept {
|
[[nodiscard]] McInt encodeInteger(I input) noexcept {
|
||||||
McInt out;
|
McInt out;
|
||||||
@ -144,6 +149,10 @@ template<typename I>
|
|||||||
return {0, OxError(1)};
|
return {0, OxError(1)};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef __GNUC__
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
|
#endif
|
||||||
|
|
||||||
template<typename I>
|
template<typename I>
|
||||||
[[nodiscard]] ValErr<I> decodeInteger(McInt m) noexcept {
|
[[nodiscard]] ValErr<I> decodeInteger(McInt m) noexcept {
|
||||||
std::size_t bytesRead;
|
std::size_t bytesRead;
|
||||||
|
6
deps/ox/src/ox/mc/read.hpp
vendored
6
deps/ox/src/ox/mc/read.hpp
vendored
@ -112,7 +112,7 @@ Error MetalClawReader::field(const char*, T *val) {
|
|||||||
err |= model(&reader, val);
|
err |= model(&reader, val);
|
||||||
}
|
}
|
||||||
return err;
|
return err;
|
||||||
};
|
}
|
||||||
|
|
||||||
template<std::size_t L>
|
template<std::size_t L>
|
||||||
Error MetalClawReader::field(const char *name, ox::BString<L> *val) {
|
Error MetalClawReader::field(const char *name, ox::BString<L> *val) {
|
||||||
@ -134,7 +134,7 @@ Error MetalClawReader::readInteger(I *val) {
|
|||||||
*val = 0;
|
*val = 0;
|
||||||
}
|
}
|
||||||
return OxError(0);
|
return OxError(0);
|
||||||
};
|
}
|
||||||
|
|
||||||
// array handler
|
// array handler
|
||||||
template<typename T>
|
template<typename T>
|
||||||
@ -162,7 +162,7 @@ Error MetalClawReader::field(const char*, T *val, std::size_t valLen) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
return err;
|
return err;
|
||||||
};
|
}
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
Error MetalClawReader::field(const char*, ox::Vector<T> *val) {
|
Error MetalClawReader::field(const char*, ox::Vector<T> *val) {
|
||||||
|
6
deps/ox/src/ox/model/descwrite.cpp
vendored
6
deps/ox/src/ox/model/descwrite.cpp
vendored
@ -27,12 +27,6 @@ static_assert([] {
|
|||||||
return indirectionLevels(i) == 1;
|
return indirectionLevels(i) == 1;
|
||||||
}(), "indirectionLevels broken: indirectionLevels(int[])");
|
}(), "indirectionLevels broken: indirectionLevels(int[])");
|
||||||
|
|
||||||
static_assert([] {
|
|
||||||
int i[2][2] = {{}};
|
|
||||||
return indirectionLevels(i) == 2;
|
|
||||||
}(), "indirectionLevels broken: indirectionLevels(int[][])");
|
|
||||||
|
|
||||||
|
|
||||||
TypeDescWriter::TypeDescWriter(TypeStore *typeStore) {
|
TypeDescWriter::TypeDescWriter(TypeStore *typeStore) {
|
||||||
if (!typeStore) {
|
if (!typeStore) {
|
||||||
m_typeStoreOwnerRef = new TypeStore;
|
m_typeStoreOwnerRef = new TypeStore;
|
||||||
|
4
deps/ox/src/ox/std/buildinfo.cpp
vendored
4
deps/ox/src/ox/std/buildinfo.cpp
vendored
@ -8,8 +8,10 @@
|
|||||||
|
|
||||||
namespace ox::buildinfo {
|
namespace ox::buildinfo {
|
||||||
|
|
||||||
|
#ifdef __clang__
|
||||||
#pragma clang diagnostic push
|
#pragma clang diagnostic push
|
||||||
#pragma clang diagnostic ignored "-Wunused-const-variable"
|
#pragma clang diagnostic ignored "-Wunused-const-variable"
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(OX_USE_STDLIB)
|
#if defined(OX_USE_STDLIB)
|
||||||
const bool UseStdLib = true;
|
const bool UseStdLib = true;
|
||||||
@ -37,6 +39,8 @@ const bool BigEndian = false;
|
|||||||
const bool LittleEndian = true;
|
const bool LittleEndian = true;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __clang__
|
||||||
#pragma clang diagnostic pop
|
#pragma clang diagnostic pop
|
||||||
|
#endif
|
||||||
|
|
||||||
}
|
}
|
||||||
|
2
deps/ox/src/ox/std/vector.hpp
vendored
2
deps/ox/src/ox/std/vector.hpp
vendored
@ -174,7 +174,7 @@ const T &Vector<T>::back() const noexcept {
|
|||||||
template<typename T>
|
template<typename T>
|
||||||
std::size_t Vector<T>::size() const noexcept {
|
std::size_t Vector<T>::size() const noexcept {
|
||||||
return m_size;
|
return m_size;
|
||||||
};
|
}
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
void Vector<T>::resize(std::size_t size) noexcept {
|
void Vector<T>::resize(std::size_t size) noexcept {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user