Fix compilation

This commit is contained in:
Jarod42 2010-10-18 12:33:35 +00:00
parent 6754198248
commit ece1edbe71
3 changed files with 7 additions and 3 deletions

View file

@ -48,6 +48,8 @@
#include "util.h"
#include "iolib.h"
#include <zlib.h>
/*----------------------------------------------------------------------------
-- Defines
----------------------------------------------------------------------------*/
@ -454,7 +456,7 @@ long CFile::tell()
/**
** Find a file with its correct extension ("", ".gz" or ".bz2")
**
** @param file The string with the file path. Upon success, the string
** @param file The string with the file path. Upon success, the string
** is replaced by the full filename witht he correct extension.
** @param filesize Size of the file buffer
**
@ -681,11 +683,11 @@ int ReadDataDirectory(const char *dirname, int (*filter)(char *, FileList *),
void FileWriter::printf(const char *format, ...)
void FileWriter::printf(const char *format, ...)
{
// FIXME: hardcoded size
char buf[1024];
va_list ap;
va_start(ap, format);
buf[sizeof(buf) - 1] = '\0';

View file

@ -41,6 +41,7 @@
#include "translate.h"
#include "iolib.h"
#include <cstdio>
/*----------------------------------------------------------------------------
-- Variables

View file

@ -28,6 +28,7 @@
//
// $Id$
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>