compile fixes for gcc 4.0 / osx.

This commit is contained in:
Steven Fuller 2007-01-07 05:38:12 +00:00 committed by Patryk Obara
parent d9a250e1df
commit 030db5bb23
5 changed files with 9 additions and 9 deletions

View file

@ -102,7 +102,7 @@ static char * RiffBasename(Chunk_With_Children * pEnvDataChunk)
#if CL_SUPPORT_FASTFILE
static inline bool IsFileInFastFile(char const * pszFileName)
{
unsigned nLen;
size_t nLen;
return ffreadbuf(pszFileName,&nLen) ? true : false;
}
#endif
@ -714,7 +714,7 @@ int CL_LoadImageOnce(char const * pszFileName, unsigned fFlagsEtc)
case LIO_DDSURFACE:
{
#if CL_SUPPORT_FASTFILE
unsigned nFastFileLen;
size_t nFastFileLen;
void const * pFastFileData = ffreadbuf(szBuf,&nFastFileLen);
if (pFastFileData)
{
@ -823,7 +823,7 @@ int CL_LoadImageOnce(char const * pszFileName, unsigned fFlagsEtc)
{
fAwLoad |= AW_TLF_COMPRESS; // required on some cards!!
#if CL_SUPPORT_FASTFILE
unsigned nFastFileLen;
size_t nFastFileLen;
void const * pFastFileData = ffreadbuf(szBuf,&nFastFileLen);
if (pFastFileData)
{

View file

@ -1,6 +1,6 @@
#include "3dc.h"
#include <malloc.h>
#include <stdlib.h>
#define UseLocalAssert No

View file

@ -1,6 +1,6 @@
#include <string.h>
#include <ctype.h>
#include <malloc.h>
#include <stdlib.h>
#include "string.hpp"
String::String()