Remove remaining code to support macos9

This OS has been unsupported for over 20 years.  We stopped providing
macswig builds more than 20 years ago too:

https://sourceforge.net/projects/swig/files/macswig/

The required SIOUX library doesn't seem to be available anywhere
now either.

Closes #2323
This commit is contained in:
Olly Betts 2022-07-19 08:20:32 +12:00
commit 6b4d5fe3f0
10 changed files with 9 additions and 307 deletions

View file

@ -14,9 +14,7 @@
#ifndef SWIG_DOH_H
#define SWIG_DOH_H
#ifndef MACSWIG
#include "swigconfig.h"
#endif
#include <stdarg.h>
#include <stdio.h>

View file

@ -84,11 +84,6 @@ static TargetLanguageModule modules[] = {
{NULL, NULL, NULL, Disabled}
};
#ifdef MACSWIG
#include <console.h>
#include <SIOUX.h>
#endif
//-----------------------------------------------------------------
// main()
//
@ -222,11 +217,6 @@ int main(int margc, char **margv) {
SWIG_merge_envopt(getenv("SWIG_FEATURES"), margc, margv, &argc, &argv);
merge_options_files(&argc, &argv);
#ifdef MACSWIG
SIOUXSettings.asktosaveonclose = false;
argc = ccommand(&argv);
#endif
Swig_init_args(argc, argv);
/* Get options */

View file

@ -110,11 +110,7 @@ static List *Swig_search_path_any(int syspath) {
assert(slist);
filename = NewStringEmpty();
assert(filename);
#ifdef MACSWIG
Printf(filename, "%s", SWIG_FILE_DELIMITER);
#else
Printf(filename, ".%s", SWIG_FILE_DELIMITER);
#endif
Append(slist, filename);
Delete(filename);

View file

@ -218,7 +218,7 @@ void Swig_filename_correct(String *filename) {
if (fname[0] == '/' && fname[1] == '/')
network_path = 1;
}
#if defined(_WIN32) || defined(MACSWIG)
#if defined(_WIN32)
/* accept Unix path separator on non-Unix systems */
Replaceall(filename, "/", SWIG_FILE_DELIMITER);
#endif

View file

@ -14,9 +14,7 @@
#ifndef SWIG_SWIG_H
#define SWIG_SWIG_H
#ifndef MACSWIG
#include "swigconfig.h"
#endif
#include <stdio.h>
#include <string.h>

View file

@ -34,9 +34,7 @@ extern void Swig_file_debug_set(void);
/* Delimiter used in accessing files and directories */
#if defined(MACSWIG)
# define SWIG_FILE_DELIMITER ":"
#elif defined(_WIN32)
#if defined(_WIN32)
# define SWIG_FILE_DELIMITER "\\"
#else
# define SWIG_FILE_DELIMITER "/"