diff -Naur mac-sdk-6.29/Makefile mac-sdk-6.29-gcc/Makefile
--- mac-sdk-6.29/Makefile	1970-01-01 01:00:00.000000000 +0100
+++ mac-sdk-6.29-gcc/Makefile	2019-11-21 22:28:57.229017400 +0100
@@ -0,0 +1,8 @@
+all:
+	$(MAKE) -f Source/Projects/NonWindows/Makefile
+
+install:
+	$(MAKE) -f Source/Projects/NonWindows/Makefile install
+
+clean:
+	$(MAKE) -f Source/Projects/NonWindows/Makefile clean
diff -Naur mac-sdk-6.29/Shared/All.h mac-sdk-6.29-gcc/Shared/All.h
--- mac-sdk-6.29/Shared/All.h	2021-03-08 19:48:15.436418600 +0100
+++ mac-sdk-6.29-gcc/Shared/All.h	2021-03-22 21:44:31.576664200 +0100
@@ -188,12 +188,22 @@
     #define TICK_COUNT_FREQ                             1000000
     #undef    ASSERT
     #define ASSERT(e)
+#endif
+
+#if !defined(PLATFORM_WINDOWS) || !defined(_MSC_VER)
     #define wcsncpy_s(A, B, C, D) wcsncpy(A, C, D)
     #define wcscpy_s(A, B, C) wcscpy(A, C)
     #define wcscat_s(A, B, C) wcscat(A, C)
-    #define sprintf_s(A, B, C, D) sprintf(A, C, D)
+    #define sprintf_s(A, B, C, ...) sprintf(A, C, __VA_ARGS__)
+    #define _stprintf_s(A, B, C, ...) _stprintf(A, C, __VA_ARGS__)
     #define strcpy_s(A, B, C) strcpy(A, C)
-    #define _tcscat_s(A, B, C) _tcscat(A, C)
+
+    #if defined(PLATFORM_WINDOWS)
+        #define _tcsncpy_s(A, B, C, D) _tcsncpy(A, C, D)
+        #define _tcscpy_s(A, B, C) _tcscpy(A, C)
+        #define _tcscat_s(A, B, C) _tcscat(A, C)
+        #define strncpy_s(A, B, C, D) strncpy(A, C, D)
+    #endif
 #endif
 
 /**************************************************************************************************
diff -Naur mac-sdk-6.29/Shared/NoWindows.h mac-sdk-6.29-gcc/Shared/NoWindows.h
--- mac-sdk-6.29/Shared/NoWindows.h	2021-05-25 13:32:36.756512600 +0200
+++ mac-sdk-6.29-gcc/Shared/NoWindows.h	2021-05-25 15:34:36.785475500 +0200
@@ -55,7 +55,7 @@
 
 #define _strnicmp strncasecmp
 #define _wtoi(x) wcstol(x, NULL, 10)
-#define _tcscat wcscat
+#define _tcscat_s wcscat_s
 #undef _totlower
 #define _totlower towlower
 #define _totupper towupper
@@ -63,7 +63,7 @@
 #ifdef _MSC_VER
 #define _tcsicmp _wcsicmp
 #else
-#define _tcsicmp wcscasecmp
+#define _tcsicmp wcscmp
 #endif
 #define _tcscpy wcscpy
 #define _tcslen wcslen
diff -Naur mac-sdk-6.29/Source/Projects/NonWindows/Makefile mac-sdk-6.29-gcc/Source/Projects/NonWindows/Makefile
--- mac-sdk-6.29/Source/Projects/NonWindows/Makefile	2021-05-25 13:32:27.353139200 +0200
+++ mac-sdk-6.29-gcc/Source/Projects/NonWindows/Makefile	2021-05-23 20:09:14.141827500 +0200
@@ -92,7 +92,7 @@
 	$(CC) $(SHAREDOBJECTS) $(LIBOBJECTS) $(DLLOBJECTS) $(LDOPTS) $(LDFLAGS) $(DLLLDOPTS) -o $@
 
 $(CMDNAME): $(DLLNAME) $(CMDOBJECTS)
-	$(CC) $(SHAREDOBJECTS) $(CMDOBJECTS) $(DLLNAME) $(LDOPTS) $(LDFLAGS) $(CMDLDOPTS) -o $@
+	$(CC) $(SHAREDOBJECTS) $(LIBOBJECTS) $(CMDOBJECTS) $(LDOPTS) $(LDFLAGS) $(CMDLDOPTS) -o $@
 
 Source/Shared/%.o: Source/Shared/%.cpp
 	$(CXX) $(CXXOPTS) $(CXXFLAGS) $< -o $@
diff -Naur mac-sdk-6.29/Source/Shared/All.h mac-sdk-6.29-gcc/Source/Shared/All.h
--- mac-sdk-6.29/Source/Shared/All.h	2021-03-08 19:48:15.436418600 +0100
+++ mac-sdk-6.29-gcc/Source/Shared/All.h	2021-03-22 21:44:31.576664200 +0100
@@ -188,12 +188,22 @@
     #define TICK_COUNT_FREQ                             1000000
     #undef    ASSERT
     #define ASSERT(e)
+#endif
+
+#if !defined(PLATFORM_WINDOWS) || !defined(_MSC_VER)
     #define wcsncpy_s(A, B, C, D) wcsncpy(A, C, D)
     #define wcscpy_s(A, B, C) wcscpy(A, C)
     #define wcscat_s(A, B, C) wcscat(A, C)
-    #define sprintf_s(A, B, C, D) sprintf(A, C, D)
+    #define sprintf_s(A, B, C, ...) sprintf(A, C, __VA_ARGS__)
+    #define _stprintf_s(A, B, C, ...) _stprintf(A, C, __VA_ARGS__)
     #define strcpy_s(A, B, C) strcpy(A, C)
-    #define _tcscat_s(A, B, C) _tcscat(A, C)
+
+    #if defined(PLATFORM_WINDOWS)
+        #define _tcsncpy_s(A, B, C, D) _tcsncpy(A, C, D)
+        #define _tcscpy_s(A, B, C) _tcscpy(A, C)
+        #define _tcscat_s(A, B, C) _tcscat(A, C)
+        #define strncpy_s(A, B, C, D) strncpy(A, C, D)
+    #endif
 #endif
 
 /**************************************************************************************************
diff -Naur mac-sdk-6.29/Source/Shared/NoWindows.h mac-sdk-6.29-gcc/Source/Shared/NoWindows.h
--- mac-sdk-6.29/Source/Shared/NoWindows.h	2021-05-25 13:32:36.756512600 +0200
+++ mac-sdk-6.29-gcc/Source/Shared/NoWindows.h	2021-05-25 15:34:36.785475500 +0200
@@ -55,7 +55,7 @@
 
 #define _strnicmp strncasecmp
 #define _wtoi(x) wcstol(x, NULL, 10)
-#define _tcscat wcscat
+#define _tcscat_s wcscat_s
 #undef _totlower
 #define _totlower towlower
 #define _totupper towupper
@@ -63,7 +63,7 @@
 #ifdef _MSC_VER
 #define _tcsicmp _wcsicmp
 #else
-#define _tcsicmp wcscasecmp
+#define _tcsicmp wcscmp
 #endif
 #define _tcscpy wcscpy
 #define _tcslen wcslen
diff -Naur mac-sdk-6.29/configure mac-sdk-6.29-gcc/configure
--- mac-sdk-6.29/configure	1970-01-01 01:00:00.000000000 +0100
+++ mac-sdk-6.29-gcc/configure	2019-11-21 22:28:57.309992100 +0100
@@ -0,0 +1 @@
+#!/bin/sh
