rename filelength to FileLength to avoid a name clash in windows

This commit is contained in:
Bill Currie 2001-06-16 04:27:22 +00:00
parent b595f0122f
commit 7254dc0052
2 changed files with 4 additions and 4 deletions

View file

@ -47,7 +47,7 @@ typedef enum {false, true} qboolean;
extern int myargc;
extern char **myargv;
int filelength (FILE *f);
int FileLength (FILE *f);
void Error (char *error, ...);
int CheckParm (char *check);

View file

@ -180,10 +180,10 @@ CheckParm (char *check)
/*
filelength
FileLength
*/
int
filelength (FILE *f)
FileLength (FILE *f)
{
int pos;
int end;
@ -251,7 +251,7 @@ LoadFile (char *filename, void **bufferptr)
void *buffer;
f = SafeOpenRead (filename);
length = filelength (f);
length = FileLength (f);
buffer = malloc (length + 1);
((char *) buffer)[length] = 0;
SafeRead (f, buffer, length);