Remove MacOS (Classic) code and all references (1/3)

The MACINTOSH define refers to MacOS Classic (not OS X) which we do not
plan to support. Rather than carry the cruft forever, let's delete it.

NOTE: legacy/ is unused but we're keeping it around, so MACINTOSH uses
there are left alone.

Process used for this commit:
```
git rm -r mac
find . \( -iname "*.c" -or -iname "*.cpp" -or -iname "*.h" \) \
  -exec unifdef -UMACINTOSH -o {} {} \;
git restore legacy
git add .
```

Test Plan:
On Mac, build both Debug and Release
```
cmake --build --preset mac --config Debug
cmake --build --preset mac --config Release
```
This commit is contained in:
Chris Sarbora
2024-04-26 15:22:03 -07:00
parent 9ec7714ebc
commit e6ba1906c9
299 changed files with 172 additions and 3869 deletions

View File

@@ -121,22 +121,14 @@ void Error(char *fmt, ...) {
va_list arglist;
int exit_msg_len;
#ifdef MACINTOSH
strcpy(Exit_message, "");
#else
strcpy(Exit_message, "Error: ");
#endif
va_start(arglist, fmt);
exit_msg_len = strlen(Exit_message);
Pvsprintf(Exit_message + exit_msg_len, MAX_MSG_LEN - exit_msg_len, fmt, arglist);
va_end(arglist);
#ifdef MACINTOSH
Debug_ErrorBox(OSMBOX_OK, "Fatal Error", Exit_message, "");
#else
snprintf(Exit_title_str, sizeof(Exit_title_str), "%s Error", App_title);
#endif
mprintf((0, "%s\n", Exit_message));
#ifdef _DEBUG