/*
-Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+Copyright (C) 1999-2007 id Software, Inc. and contributors.
For a list of contributors, see the accompanying CONTRIBUTORS file.
This file is part of GtkRadiant.
char* UnixToDosPath( char* path )
{
-#ifndef WIN32
+#ifndef _WIN32
return path;
#else
for(char* p = path; *p; p++)
#endif
}
-void ExtractFilePath( const char *path, char *dest )
+void CAMERA_ExtractFilePath( const char *path, char *dest )
{
const char *src;
const char* ExtractFilename( const char* path )
{
- char* p = strrchr(path, '/');
+ char* p = (char *)strrchr(path, '/');
if(!p)
{
- p = strrchr(path, '\\');
+ p = (char *)strrchr(path, '\\');
if(!p)
return path;
// Filesystem
//
-#ifdef WIN32
+#ifdef _WIN32
#pragma warning(disable : 4311)
#pragma warning(disable : 4312)
#endif
Com_Dealloc( buffer );
}
-int FS_FOpenFileRead( const char *filename, fileHandle_t *file, bool uniqueFILE ) {
+int FS_FOpenFileRead( const char *filename, fileHandle_t *file, qboolean uniqueFILE ) {
FILE *fh;
long len;