Small fixes for compilation with old devkitPPC.

This commit is contained in:
retro100 2021-04-30 20:09:40 +00:00
parent a034526625
commit 44c2afc9ae
4 changed files with 4 additions and 4 deletions

View File

@ -6,8 +6,6 @@
#include "vconsole.h"
#include <gccore.h>
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
#define MAX_PRINTF_LEN 512
@ -86,7 +84,8 @@ int vconsole_print(vconsole_t* vc, const char* text)
void vconsole_write(vconsole_t* vc, const void* buf, unsigned int len)
{
const char* text = buf;
for (unsigned int i = 0; i < len; ++i) {
unsigned int i;
for (i = 0; i < len; ++i) {
char ch = text[i];
if (ch == '\0') {
// ignore it

View File

@ -6,6 +6,7 @@
#ifndef VCONSOLE_H
#define VCONSOLE_H
#include <stdarg.h>
#include <stdio.h>
#define VCONSOLE_WIDTH 73 // usable are 72

View File

@ -8,7 +8,6 @@
#endif
#include "wiiio.h"
#include "vconsole.h"
#include <stdarg.h>
#include <stdlib.h>
static vconsole_t* vc = NULL;

View File

@ -6,6 +6,7 @@
#ifndef WIIIO_H
#define WIIIO_H
#include <stdarg.h>
#include <stdio.h>
#ifdef __cplusplus