diff --git a/common/cmdlib.h b/common/cmdlib.h
index 2e1513d..d8c64c7 100644
--- a/common/cmdlib.h
+++ b/common/cmdlib.h
@@ -21,8 +21,8 @@
#if !defined (HLCSG) && !defined (HLBSP) && !defined (HLVIS) && !defined (HLRAD) && !defined (RIPENT) //--vluzacn
#error "You must define one of these in the settings of each project: HLCSG, HLBSP, HLVIS, HLRAD, RIPENT. The most likely cause is that you didn't load the project from the sln file."
#endif
-#if !defined (VERSION_32BIT) && !defined (VERSION_64BIT) && !defined (VERSION_LINUX) && !defined (VERSION_OTHER) //--vluzacn
-#error "You must define one of these in the settings of each project: VERSION_32BIT, VERSION_64BIT, VERSION_LINUX, VERSION_OTHER. The most likely cause is that you didn't load the project from the sln file."
+#if !defined (VERSION_32BIT) && !defined (VERSION_64BIT) && !defined (VERSION_LINUX) && !defined (VERSION_MACOS) && !defined (VERSION_OTHER) //--vluzacn
+#error "You must define one of these in the settings of each project: VERSION_32BIT, VERSION_64BIT, VERSION_LINUX, VERSION_MACOS, VERSION_OTHER. The most likely cause is that you didn't load the project from the sln file."
#endif

#ifdef VERSION_32BIT
@@ -37,6 +37,10 @@
#define PLATFORM_VERSIONSTRING "linux"
#define PLATFORM_CAN_CALC_EXTENT
#endif
+#ifdef VERSION_MACOS
+#define PLATFORM_VERSIONSTRING "macos"
+#define PLATFORM_CAN_CALC_EXTENT
+#endif
#ifdef VERSION_OTHER
#define PLATFORM_VERSIONSTRING "???"
#endif
diff --git a/common/filelib.cpp b/common/filelib.cpp
index 11befd4..fa1cff4 100644
--- a/common/filelib.cpp
+++ b/common/filelib.cpp
@@ -87,7 +87,7 @@ long getfiledata(const char* const filename, char* buffer, const int
}
_close(handle);
time(&end);
- Log("%10.3fMB] (%d)\n", size / (1024.0 * 1024.0), end - start);
+ Log("%10.3fMB] (%d)\n", size / (1024.0 * 1024.0), (int)(end - start));
}

if (buffersize != size)
diff --git a/common/threads.cpp b/common/threads.cpp
index 7c7a876..3a0ef69 100644
--- a/common/threads.cpp
+++ b/common/threads.cpp
@@ -656,7 +656,7 @@ void threads_UninitCrit()
*/
void RunThreadsOn(int workcnt, bool showpacifier, q_threadfunction func)
{
- int i;
+ intptr_t i;
pthread_t work_threads[MAX_THREADS];
pthread_addr_t status;
pthread_attr_t attrib;

--
2.10.1