nixpkgs/pkgs/development/interpreters/tinyscheme/01-remove-macOS-main.patch

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

25 lines
536 B
Diff
Raw Normal View History

2022-07-18 22:13:20 +02:00
diff --git a/scheme.c b/scheme.c
index 6186ef0..5a43592 100644
--- a/scheme.c
+++ b/scheme.c
@@ -4949,19 +4949,7 @@ pointer scheme_eval(scheme *sc, pointer obj)
#if STANDALONE
-#if defined(__APPLE__) && !defined (OSX)
-int main()
-{
- extern MacTS_main(int argc, char **argv);
- char** argv;
- int argc = ccommand(&argv);
- MacTS_main(argc,argv);
- return 0;
-}
-int MacTS_main(int argc, char **argv) {
-#else
int main(int argc, char **argv) {
-#endif
scheme sc;
FILE *fin;
char *file_name=InitFile;