[ox] Get building in MSVC
This commit is contained in:
3
deps/ox/src/ox/std/hardware.hpp
vendored
3
deps/ox/src/ox/std/hardware.hpp
vendored
@@ -22,7 +22,8 @@
|
||||
|
||||
#else
|
||||
|
||||
#warn "Undefined hardware"
|
||||
//TODO: fix warnning
|
||||
//#warn "Undefined hardware"
|
||||
|
||||
#endif
|
||||
|
||||
|
2
deps/ox/src/ox/std/stddef.hpp
vendored
2
deps/ox/src/ox/std/stddef.hpp
vendored
@@ -8,7 +8,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#if OX_USE_STDLIB
|
||||
#ifdef OX_USE_STDLIB
|
||||
#include <cstddef>
|
||||
#else
|
||||
#define offsetof(type, member) __builtin_offsetof(type, member)
|
||||
|
4
deps/ox/src/ox/std/strops.hpp
vendored
4
deps/ox/src/ox/std/strops.hpp
vendored
@@ -96,7 +96,7 @@ template<typename T1, typename T2>
|
||||
int retval = -1;
|
||||
for (std::size_t i = 0; i < maxLen && str[i]; i++) {
|
||||
if (str[i] == character) {
|
||||
retval = i;
|
||||
retval = static_cast<int>(i);
|
||||
}
|
||||
}
|
||||
return retval;
|
||||
@@ -106,7 +106,7 @@ template<typename T1, typename T2>
|
||||
int retval = -1;
|
||||
for (std::size_t i = 0; i < maxLen && str[i]; i++) {
|
||||
if (str[i] == character) {
|
||||
retval = i;
|
||||
retval = static_cast<int>(i);
|
||||
}
|
||||
}
|
||||
return retval;
|
||||
|
1
deps/ox/src/ox/std/trace.cpp
vendored
1
deps/ox/src/ox/std/trace.cpp
vendored
@@ -10,7 +10,6 @@
|
||||
#include <iomanip>
|
||||
#include <iostream>
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#include "trace.hpp"
|
||||
|
Reference in New Issue
Block a user