nixpkgs/pkgs/development/interpreters/tinyscheme/01-remove-macOS-main.patch
2022-07-18 16:59:00 -05:00

25 lines
536 B
Diff

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;