From 3030dada14e0ccbe9d2e7ce3b6fd109872d13c49 Mon Sep 17 00:00:00 2001 From: Matthias Benkard Date: Sun, 21 Sep 2008 16:16:47 +0200 Subject: Fix compilation on Mac OS X 10.5. --- MLKForeignProcedure.m | 1 + MLKRoot.m | 4 +- SCM/continue.h | 5 +- Toilet Lisp.xcodeproj/project.pbxproj | 116 +++++++++++++++++++++++++--------- 4 files changed, 93 insertions(+), 33 deletions(-) diff --git a/MLKForeignProcedure.m b/MLKForeignProcedure.m index b8dab83..1374924 100644 --- a/MLKForeignProcedure.m +++ b/MLKForeignProcedure.m @@ -117,5 +117,6 @@ -(void) finalize { free (_argumentTypes); + [super finalize]; } @end diff --git a/MLKRoot.m b/MLKRoot.m index 906fe9e..596b1e7 100644 --- a/MLKRoot.m +++ b/MLKRoot.m @@ -341,7 +341,7 @@ macroexpand_1 (id *_data, id form, id arg, ...) } static id -shadow (id *_data, id symbols, id arg, ...) +shadow_ (id *_data, id symbols, id arg, ...) { va_list ap; @@ -831,7 +831,7 @@ register_sys (NSString *name, id (*function)()) register_sys (@"IDIVIDE-FIXNUMS", idivide_fixnums); register_sys (@"LIST", (id (*)())list); register_sys (@"MACROEXPAND-1", (id (*)())macroexpand_1); - register_sys (@"SHADOW", (id (*)())shadow); + register_sys (@"SHADOW", (id (*)())shadow_); register_sys (@"EXPORT", (id (*)())export); register_sys (@"UNEXPORT", (id (*)())unexport); register_sys (@"FIND-PACKAGE", find_package); diff --git a/SCM/continue.h b/SCM/continue.h index 2acb368..d901e01 100644 --- a/SCM/continue.h +++ b/SCM/continue.h @@ -18,7 +18,10 @@ /* "continue.h" Scheme Continuations for C. Author: Aubrey Jaffer. */ -#define STDC_HEADERS +#ifndef STDC_HEADERS +#define STDC_HEADERS 1 +#endif + #include /* If stack is not longword aligned then */ diff --git a/Toilet Lisp.xcodeproj/project.pbxproj b/Toilet Lisp.xcodeproj/project.pbxproj index 1f79085..b41eec8 100644 --- a/Toilet Lisp.xcodeproj/project.pbxproj +++ b/Toilet Lisp.xcodeproj/project.pbxproj @@ -941,10 +941,12 @@ A7E5C3CE0E21682800A01D81 /* Project object */ = { isa = PBXProject; buildConfigurationList = A7E5C3CF0E21682800A01D81 /* Build configuration list for PBXProject "Toilet Lisp" */; + compatibilityVersion = "Xcode 2.4"; hasScannedForEncodings = 0; mainGroup = A7E5C3CC0E21682800A01D81; productRefGroup = A7E5C3E00E21684000A01D81 /* Products */; projectDirPath = ""; + projectRoot = ""; targets = ( A7E5C3EA0E21689F00A01D81 /* ToiletKit */, A7E5C3F20E21690200A01D81 /* toilet */, @@ -1109,8 +1111,9 @@ INSTALL_PATH = "$(HOME)/Applications"; LIBRARY_SEARCH_PATHS = /opt/local/lib; OTHER_CFLAGS = ( - "-DHAVE_FFI_H", + "-DHAVE_FFI_FFI_H", "-DUSE_LLVM", + "-DMACOSX", ); OTHER_LDFLAGS = ( "-framework", @@ -1163,8 +1166,9 @@ INSTALL_PATH = "$(HOME)/Applications"; LIBRARY_SEARCH_PATHS = /opt/local/lib; OTHER_CFLAGS = ( - "-DHAVE_FFI_H", + "-DHAVE_FFI_FFI_H", "-DUSE_LLVM", + "-DMACOSX", ); OTHER_LDFLAGS = ( "-framework", @@ -1217,8 +1221,9 @@ INSTALL_PATH = "$(HOME)/Applications"; LIBRARY_SEARCH_PATHS = /opt/local/lib; OTHER_CFLAGS = ( - "-DHAVE_FFI_H", + "-DHAVE_FFI_FFI_H", "-DUSE_LLVM", + "-DMACOSX", ); OTHER_LDFLAGS = ( "-framework", @@ -1273,8 +1278,9 @@ INSTALL_PATH = "$(HOME)/Applications"; LIBRARY_SEARCH_PATHS = /opt/local/lib; OTHER_CFLAGS = ( - "-DHAVE_FFI_H", + "-DHAVE_FFI_FFI_H", "-DUSE_LLVM", + "-DMACOSX", ); OTHER_LDFLAGS = ( "-framework", @@ -1327,8 +1333,9 @@ INSTALL_PATH = "$(HOME)/Applications"; LIBRARY_SEARCH_PATHS = /opt/local/lib; OTHER_CFLAGS = ( - "-DHAVE_FFI_H", + "-DHAVE_FFI_FFI_H", "-DUSE_LLVM", + "-DMACOSX", ); OTHER_LDFLAGS = ( "-framework", @@ -1381,8 +1388,9 @@ INSTALL_PATH = "$(HOME)/Applications"; LIBRARY_SEARCH_PATHS = /opt/local/lib; OTHER_CFLAGS = ( - "-DHAVE_FFI_H", + "-DHAVE_FFI_FFI_H", "-DUSE_LLVM", + "-DMACOSX", ); OTHER_LDFLAGS = ( "-framework", @@ -1438,10 +1446,11 @@ HEADER_SEARCH_PATHS = /opt/local/include; INSTALL_PATH = /usr/local/lib; OTHER_CFLAGS = ( - "-DHAVE_FFI_H", + "-DHAVE_FFI_FFI_H", "-DUSE_LLVM", "-DLLVM_MAJOR_VERSION=2", "-DLLVM_MINOR_VERSION=3", + "-DMACOSX", ); OTHER_CPLUSPLUSFLAGS = ( "$(OTHER_CFLAGS)", @@ -1473,10 +1482,11 @@ HEADER_SEARCH_PATHS = /opt/local/include; INSTALL_PATH = /usr/local/lib; OTHER_CFLAGS = ( - "-DHAVE_FFI_H", + "-DHAVE_FFI_FFI_H", "-DUSE_LLVM", "-DLLVM_MAJOR_VERSION=2", "-DLLVM_MINOR_VERSION=3", + "-DMACOSX", ); OTHER_CPLUSPLUSFLAGS = ( "$(OTHER_CFLAGS)", @@ -1508,10 +1518,11 @@ HEADER_SEARCH_PATHS = /opt/local/include; INSTALL_PATH = /usr/local/lib; OTHER_CFLAGS = ( - "-DHAVE_FFI_H", + "-DHAVE_FFI_FFI_H", "-DUSE_LLVM", "-DLLVM_MAJOR_VERSION=2", "-DLLVM_MINOR_VERSION=3", + "-DMACOSX", ); OTHER_CPLUSPLUSFLAGS = ( "$(OTHER_CFLAGS)", @@ -1545,10 +1556,11 @@ HEADER_SEARCH_PATHS = /opt/local/include; INSTALL_PATH = /usr/local/lib; OTHER_CFLAGS = ( - "-DHAVE_FFI_H", + "-DHAVE_FFI_FFI_H", "-DUSE_LLVM", "-DLLVM_MAJOR_VERSION=2", "-DLLVM_MINOR_VERSION=3", + "-DMACOSX", ); OTHER_CPLUSPLUSFLAGS = ( "$(OTHER_CFLAGS)", @@ -1580,10 +1592,11 @@ HEADER_SEARCH_PATHS = /opt/local/include; INSTALL_PATH = /usr/local/lib; OTHER_CFLAGS = ( - "-DHAVE_FFI_H", + "-DHAVE_FFI_FFI_H", "-DUSE_LLVM", "-DLLVM_MAJOR_VERSION=2", "-DLLVM_MINOR_VERSION=3", + "-DMACOSX", ); OTHER_CPLUSPLUSFLAGS = ( "$(OTHER_CFLAGS)", @@ -1615,10 +1628,11 @@ HEADER_SEARCH_PATHS = /opt/local/include; INSTALL_PATH = /usr/local/lib; OTHER_CFLAGS = ( - "-DHAVE_FFI_H", + "-DHAVE_FFI_FFI_H", "-DUSE_LLVM", "-DLLVM_MAJOR_VERSION=2", "-DLLVM_MINOR_VERSION=3", + "-DMACOSX", ); OTHER_CPLUSPLUSFLAGS = ( "$(OTHER_CFLAGS)", @@ -1655,7 +1669,10 @@ HEADER_SEARCH_PATHS = /opt/local/include; INSTALL_PATH = "$(HOME)/bin"; LIBRARY_SEARCH_PATHS = /opt/local/lib; - OTHER_CFLAGS = "-DHAVE_FFI_H"; + OTHER_CFLAGS = ( + "-DHAVE_FFI_FFI_H", + "-DMACOSX", + ); OTHER_LDFLAGS = ( "-framework", Foundation, @@ -1689,7 +1706,10 @@ HEADER_SEARCH_PATHS = /opt/local/include; INSTALL_PATH = "$(HOME)/bin"; LIBRARY_SEARCH_PATHS = /opt/local/lib; - OTHER_CFLAGS = "-DHAVE_FFI_H"; + OTHER_CFLAGS = ( + "-DHAVE_FFI_FFI_H", + "-DMACOSX", + ); OTHER_LDFLAGS = ( "-framework", Foundation, @@ -1724,7 +1744,10 @@ HEADER_SEARCH_PATHS = /opt/local/include; INSTALL_PATH = "$(HOME)/bin"; LIBRARY_SEARCH_PATHS = /opt/local/lib; - OTHER_CFLAGS = "-DHAVE_FFI_H"; + OTHER_CFLAGS = ( + "-DHAVE_FFI_FFI_H", + "-DMACOSX", + ); OTHER_LDFLAGS = ( "-framework", Foundation, @@ -1761,7 +1784,10 @@ HEADER_SEARCH_PATHS = /opt/local/include; INSTALL_PATH = "$(HOME)/bin"; LIBRARY_SEARCH_PATHS = /opt/local/lib; - OTHER_CFLAGS = "-DHAVE_FFI_H"; + OTHER_CFLAGS = ( + "-DHAVE_FFI_FFI_H", + "-DMACOSX", + ); OTHER_LDFLAGS = ( "-framework", Foundation, @@ -1799,7 +1825,10 @@ HEADER_SEARCH_PATHS = /opt/local/include; INSTALL_PATH = "$(HOME)/bin"; LIBRARY_SEARCH_PATHS = /opt/local/lib; - OTHER_CFLAGS = "-DHAVE_FFI_H"; + OTHER_CFLAGS = ( + "-DHAVE_FFI_FFI_H", + "-DMACOSX", + ); OTHER_LDFLAGS = ( "-framework", Foundation, @@ -1838,7 +1867,10 @@ HEADER_SEARCH_PATHS = /opt/local/include; INSTALL_PATH = "$(HOME)/bin"; LIBRARY_SEARCH_PATHS = /opt/local/lib; - OTHER_CFLAGS = "-DHAVE_FFI_H"; + OTHER_CFLAGS = ( + "-DHAVE_FFI_FFI_H", + "-DMACOSX", + ); OTHER_LDFLAGS = ( "-framework", Foundation, @@ -1877,7 +1909,10 @@ INSTALL_PATH = "$(HOME)/Library/Frameworks"; LIBRARY_SEARCH_PATHS = /opt/local/lib; MACOSX_DEPLOYMENT_TARGET = ""; - OTHER_CFLAGS = "-DHAVE_FFI_H"; + OTHER_CFLAGS = ( + "-DHAVE_FFI_FFI_H", + "-DMACOSX", + ); OTHER_CPLUSPLUSFLAGS = ( "$(OTHER_CFLAGS)", "-I/opt/local/include", @@ -1913,8 +1948,9 @@ INSTALL_PATH = "$(HOME)/bin"; LIBRARY_SEARCH_PATHS = /opt/local/lib; OTHER_CFLAGS = ( - "-DHAVE_FFI_H", + "-DHAVE_FFI_FFI_H", "-DUSE_LLVM", + "-DMACOSX", ); OTHER_LDFLAGS = ( "-framework", @@ -1981,7 +2017,10 @@ INSTALL_PATH = "$(HOME)/Library/Frameworks"; LIBRARY_SEARCH_PATHS = /opt/local/lib; MACOSX_DEPLOYMENT_TARGET = ""; - OTHER_CFLAGS = "-DHAVE_FFI_H"; + OTHER_CFLAGS = ( + "-DHAVE_FFI_FFI_H", + "-DMACOSX", + ); OTHER_CPLUSPLUSFLAGS = ( "$(OTHER_CFLAGS)", "-I/opt/local/include", @@ -2018,8 +2057,9 @@ INSTALL_PATH = "$(HOME)/bin"; LIBRARY_SEARCH_PATHS = /opt/local/lib; OTHER_CFLAGS = ( - "-DHAVE_FFI_H", + "-DHAVE_FFI_FFI_H", "-DUSE_LLVM", + "-DMACOSX", ); OTHER_LDFLAGS = ( "-framework", @@ -2089,7 +2129,10 @@ INSTALL_PATH = "$(HOME)/Library/Frameworks"; LIBRARY_SEARCH_PATHS = /opt/local/lib; MACOSX_DEPLOYMENT_TARGET = ""; - OTHER_CFLAGS = "-DHAVE_FFI_H"; + OTHER_CFLAGS = ( + "-DHAVE_FFI_FFI_H", + "-DMACOSX", + ); OTHER_CPLUSPLUSFLAGS = ( "$(OTHER_CFLAGS)", "-I/opt/local/include", @@ -2134,7 +2177,10 @@ INSTALL_PATH = "$(HOME)/Library/Frameworks"; LIBRARY_SEARCH_PATHS = /opt/local/lib; MACOSX_DEPLOYMENT_TARGET = ""; - OTHER_CFLAGS = "-DHAVE_FFI_H"; + OTHER_CFLAGS = ( + "-DHAVE_FFI_FFI_H", + "-DMACOSX", + ); OTHER_CPLUSPLUSFLAGS = ( "$(OTHER_CFLAGS)", "-I/opt/local/include", @@ -2174,8 +2220,9 @@ INSTALL_PATH = "$(HOME)/bin"; LIBRARY_SEARCH_PATHS = /opt/local/lib; OTHER_CFLAGS = ( - "-DHAVE_FFI_H", + "-DHAVE_FFI_FFI_H", "-DUSE_LLVM", + "-DMACOSX", ); OTHER_LDFLAGS = ( "-framework", @@ -2235,8 +2282,9 @@ INSTALL_PATH = "$(HOME)/bin"; LIBRARY_SEARCH_PATHS = /opt/local/lib; OTHER_CFLAGS = ( - "-DHAVE_FFI_H", + "-DHAVE_FFI_FFI_H", "-DUSE_LLVM", + "-DMACOSX", ); OTHER_LDFLAGS = ( "-framework", @@ -2322,7 +2370,10 @@ INSTALL_PATH = /Library/Frameworks; LIBRARY_SEARCH_PATHS = /opt/local/lib; MACOSX_DEPLOYMENT_TARGET = ""; - OTHER_CFLAGS = "-DHAVE_FFI_H"; + OTHER_CFLAGS = ( + "-DHAVE_FFI_FFI_H", + "-DMACOSX", + ); OTHER_CPLUSPLUSFLAGS = ( "$(OTHER_CFLAGS)", "-I/opt/local/include", @@ -2365,7 +2416,10 @@ INSTALL_PATH = "$(HOME)/Library/Frameworks"; LIBRARY_SEARCH_PATHS = /opt/local/lib; MACOSX_DEPLOYMENT_TARGET = ""; - OTHER_CFLAGS = "-DHAVE_FFI_H"; + OTHER_CFLAGS = ( + "-DHAVE_FFI_FFI_H", + "-DMACOSX", + ); OTHER_CPLUSPLUSFLAGS = ( "$(OTHER_CFLAGS)", "-I/opt/local/include", @@ -2400,8 +2454,9 @@ INSTALL_PATH = "$(HOME)/bin"; LIBRARY_SEARCH_PATHS = /opt/local/lib; OTHER_CFLAGS = ( - "-DHAVE_FFI_H", + "-DHAVE_FFI_FFI_H", "-DUSE_LLVM", + "-DMACOSX", ); OTHER_LDFLAGS = ( "-framework", @@ -2459,8 +2514,9 @@ INSTALL_PATH = "$(HOME)/bin"; LIBRARY_SEARCH_PATHS = /opt/local/lib; OTHER_CFLAGS = ( - "-DHAVE_FFI_H", + "-DHAVE_FFI_FFI_H", "-DUSE_LLVM", + "-DMACOSX", ); OTHER_LDFLAGS = ( "-framework", -- cgit v1.2.3