Added support for Mac OS X and building with clang (bug 5601, r=dvander).

This commit is contained in:
Scott Ehlert
2013-02-13 01:14:37 -06:00
parent b0fe6c83e2
commit 40c1fee55a
191 changed files with 3835 additions and 1946 deletions

View File

@@ -35,12 +35,12 @@
// 3 = HL Logs
#include <time.h>
#ifndef __linux__
#if defined(_WIN32)
#include <io.h>
#endif
#include "amxmodx.h"
#ifndef __linux__
#if defined(_WIN32WIN32)
#define vsnprintf _vsnprintf
#endif
@@ -137,7 +137,7 @@ void CLog::MapChange()
{
// create dir if not existing
char file[256];
#ifdef __linux
#if defined(__linux__) || defined(__APPLE__)
mkdir(build_pathname_r(file, sizeof(file)-1, "%s", g_log_dir.c_str()), 0700);
#else
mkdir(build_pathname_r(file, sizeof(file)-1, "%s", g_log_dir.c_str()));