mirror of
https://github.com/TTimo/GtkRadiant.git
synced 2025-02-13 23:51:38 +00:00
Fix compiling warning for wad
This commit is contained in:
parent
3b8916b877
commit
c5b717254c
1 changed files with 3 additions and 3 deletions
|
@ -119,9 +119,7 @@ int vfsBuildShortPathName( const char* pPath, char* pBuffer, int nBufferLen ){
|
||||||
strcpy( pBuffer, pPath ); // Use long filename
|
strcpy( pBuffer, pPath ); // Use long filename
|
||||||
}
|
}
|
||||||
return nResult;
|
return nResult;
|
||||||
#endif
|
#elif defined ( __linux__ ) || defined ( __APPLE__ )
|
||||||
|
|
||||||
#if defined ( __linux__ ) || defined ( __APPLE__ )
|
|
||||||
|
|
||||||
// remove /../ from directories
|
// remove /../ from directories
|
||||||
const char *scr = pPath; char *dst = pBuffer;
|
const char *scr = pPath; char *dst = pBuffer;
|
||||||
|
@ -142,6 +140,8 @@ int vfsBuildShortPathName( const char* pPath, char* pBuffer, int nBufferLen ){
|
||||||
*dst = 0;
|
*dst = 0;
|
||||||
|
|
||||||
return strlen( pBuffer );
|
return strlen( pBuffer );
|
||||||
|
#else
|
||||||
|
#error "unsupported platform"
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue