[ox] Get building in MSVC

This commit is contained in:
2019-12-23 15:11:53 -06:00
parent a66f1499a4
commit 4cbf1b9a9a
7 changed files with 10 additions and 11 deletions

View File

@@ -22,7 +22,8 @@
#else
#warn "Undefined hardware"
//TODO: fix warnning
//#warn "Undefined hardware"
#endif

View File

@@ -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)

View File

@@ -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;

View File

@@ -10,7 +10,6 @@
#include <iomanip>
#include <iostream>
#include <stdio.h>
#include <unistd.h>
#endif
#include "trace.hpp"