mirror of
https://github.com/retro100/dosbox-wii.git
synced 2024-12-26 02:21:49 +01:00
Small fixes for compilation with old devkitPPC.
This commit is contained in:
parent
a034526625
commit
44c2afc9ae
@ -6,8 +6,6 @@
|
|||||||
#include "vconsole.h"
|
#include "vconsole.h"
|
||||||
|
|
||||||
#include <gccore.h>
|
#include <gccore.h>
|
||||||
#include <stdarg.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#define MAX_PRINTF_LEN 512
|
#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)
|
void vconsole_write(vconsole_t* vc, const void* buf, unsigned int len)
|
||||||
{
|
{
|
||||||
const char* text = buf;
|
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];
|
char ch = text[i];
|
||||||
if (ch == '\0') {
|
if (ch == '\0') {
|
||||||
// ignore it
|
// ignore it
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
#ifndef VCONSOLE_H
|
#ifndef VCONSOLE_H
|
||||||
#define VCONSOLE_H
|
#define VCONSOLE_H
|
||||||
|
|
||||||
|
#include <stdarg.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#define VCONSOLE_WIDTH 73 // usable are 72
|
#define VCONSOLE_WIDTH 73 // usable are 72
|
||||||
|
@ -8,7 +8,6 @@
|
|||||||
#endif
|
#endif
|
||||||
#include "wiiio.h"
|
#include "wiiio.h"
|
||||||
#include "vconsole.h"
|
#include "vconsole.h"
|
||||||
#include <stdarg.h>
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
static vconsole_t* vc = NULL;
|
static vconsole_t* vc = NULL;
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
#ifndef WIIIO_H
|
#ifndef WIIIO_H
|
||||||
#define WIIIO_H
|
#define WIIIO_H
|
||||||
|
|
||||||
|
#include <stdarg.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
Loading…
Reference in New Issue
Block a user