Merge pull request #370 from Pan7/fixwad2

Fix gcc compiler warning for wad
This commit is contained in:
Timothee "TTimo" Besset 2016-08-20 15:53:00 -06:00 committed by GitHub
commit b4f58b6992
2 changed files with 4 additions and 4 deletions

View file

@ -52,7 +52,7 @@
#define MDC_DIST_SCALE 0.05f
/* mdc decoding normal table */
double mdcNormals[ 256 ][ 3 ] =
const double mdcNormals[ 256 ][ 3 ] =
{
{ 1.000000, 0.000000, 0.000000 },
{ 0.980785, 0.195090, 0.000000 },

View file

@ -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
}