diff --git a/libs/picomodel/pm_mdc.c b/libs/picomodel/pm_mdc.c index 2e4849fb..396cadc9 100644 --- a/libs/picomodel/pm_mdc.c +++ b/libs/picomodel/pm_mdc.c @@ -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 }, diff --git a/plugins/vfswad/vfs.cpp b/plugins/vfswad/vfs.cpp index e9a17be3..a378b9f2 100644 --- a/plugins/vfswad/vfs.cpp +++ b/plugins/vfswad/vfs.cpp @@ -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 }