1
0

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:
madmaxoft@gmail.com
2013-05-25 14:59:41 +00:00
parent 41db106a8f
commit 67154217a2
14 changed files with 1711 additions and 18 deletions

View File

@@ -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 );