From 67154217a2be5f66eeaeedd10bcc24d26ce473c2 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Sat, 25 May 2013 14:59:41 +0000 Subject: Added base Code::Blocks project (WIP, still doesn't compile) and fixed some source errors with MinGW. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1510 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/Log.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source/Log.cpp') diff --git a/source/Log.cpp b/source/Log.cpp index ed1a9beb8..5f78bba1b 100644 --- a/source/Log.cpp +++ b/source/Log.cpp @@ -70,7 +70,7 @@ void cLog::CloseLog() void cLog::OpenLog( const char* a_FileName ) { if(m_File) fclose (m_File); - #ifdef _WIN32 + #ifdef _MSC_VER fopen_s( &m_File, a_FileName, "a+" ); #else m_File = fopen(a_FileName, "a+" ); @@ -83,7 +83,7 @@ void cLog::OpenLog( const char* a_FileName ) void cLog::ClearLog() { - #ifdef _WIN32 + #ifdef _MSC_VER if( fopen_s( &m_File, "log.txt", "w" ) == 0) fclose (m_File); #else @@ -107,7 +107,7 @@ void cLog::Log(const char * a_Format, va_list argList) time ( &rawtime ); struct tm* timeinfo; -#ifdef _WIN32 +#ifdef _MSC_VER struct tm timeinforeal; timeinfo = &timeinforeal; localtime_s(timeinfo, &rawtime ); -- cgit v1.2.3