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
This commit is contained in:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user