mirror of
https://github.com/TTimo/GtkRadiant.git
synced 2024-11-10 07:11:54 +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
|
||||
}
|
||||
return nResult;
|
||||
#endif
|
||||
|
||||
#if defined ( __linux__ ) || defined ( __APPLE__ )
|
||||
#elif defined ( __linux__ ) || defined ( __APPLE__ )
|
||||
|
||||
// remove /../ from directories
|
||||
const char *scr = pPath; char *dst = pBuffer;
|
||||
|
@ -142,6 +140,8 @@ int vfsBuildShortPathName( const char* pPath, char* pBuffer, int nBufferLen ){
|
|||
*dst = 0;
|
||||
|
||||
return strlen( pBuffer );
|
||||
#else
|
||||
#error "unsupported platform"
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue