Some minor fixes for MinGW compiler

This commit is contained in:
deve 2014-07-25 13:00:01 +02:00
parent 2f71c5f99f
commit f3746c068c
3 changed files with 3 additions and 3 deletions

View File

@ -723,7 +723,7 @@ void FileManager::checkAndCreateConfigDir()
if(!checkAndCreateDirectory(m_user_config_dir))
{
Log::error("[FileManager]", "Can't create config dir '%s"
", falling back to '.'.", m_user_config_dir);
", falling back to '.'.", m_user_config_dir.c_str());
m_user_config_dir = ".";
}
}

View File

@ -24,7 +24,7 @@
// btAlignedObjectArray to enable bullet SSE optimisations.
// On the other hand, std::vector gives much better debugging features.
// So SSE is disabled in bullet on windows debug
#if !defined(DEBUG) && (WIN32)
#if !defined(DEBUG) && defined(WIN32)
# undef USE_ALIGNED
#else
# undef USE_ALIGNED

View File

@ -3,7 +3,7 @@
* so we define the work arounds only for compiler versions before 18.00
*/
#if defined(WIN32) && _MSC_VER < 1800
#if defined(WIN32) && defined(_MSC_VER) && _MSC_VER < 1800
# include <math.h>
# define isnan _isnan