Skip to content

Commit

Permalink
Merge pull request #7 from jondistad/osx-update
Browse files Browse the repository at this point in the history
Minor modifications to build on current OS X machine
  • Loading branch information
JeffBezanson committed May 13, 2013
2 parents fe8b88c + 3707cc2 commit 2c2c145
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
5 changes: 3 additions & 2 deletions Makefile.macosx
@@ -1,4 +1,5 @@
CC = gcc
CC ?= gcc
CARBON_HEADERS ?= "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/Developer/Headers"

NAME = flisp
SRCS = $(NAME).c builtins.c string.c equalhash.c table.c iostream.c
Expand All @@ -9,7 +10,7 @@ LIBTARGET = lib$(NAME)
LLTDIR = llt
LLT = $(LLTDIR)/libllt.a

CONFIG = -DMACOSX -DARCH_X86_64 -DBITS64 -D__CPU__=686
CONFIG = -DMACOSX -DARCH_X86_64 -DBITS64 -D__CPU__=686 -I$(CARBON_HEADERS)
FLAGS = -falign-functions -Wall -Wno-strict-aliasing -I$(LLTDIR) $(CFLAGS) -DUSE_COMPUTED_GOTO $(CONFIG)
LIBFILES = $(LLT)
LIBS = $(LIBFILES) -lm -framework ApplicationServices
Expand Down
4 changes: 2 additions & 2 deletions llt/dirpath.c
Expand Up @@ -113,8 +113,8 @@ char *get_exename(char *buf, size_t size)
return buf;
}
#elif defined(MACOSX)
#include "/Developer/Headers/FlatCarbon/Processes.h"
#include "/Developer/Headers/FlatCarbon/Files.h"
#include <FlatCarbon/Processes.h>
#include <FlatCarbon/Files.h>
char *get_exename(char *buf, size_t size)
{
ProcessSerialNumber PSN;
Expand Down
2 changes: 2 additions & 0 deletions llt/dtypes.h
Expand Up @@ -28,6 +28,7 @@
#endif


#if !defined (BITS32) && !defined (BITS64)
#ifndef __SIZEOF_POINTER__
# error "__SIZEOF_POINTER__ undefined"
#endif
Expand All @@ -38,6 +39,7 @@
#else
# error "this is one weird machine"
#endif
#endif


#if defined(WIN32)
Expand Down

0 comments on commit 2c2c145

Please sign in to comment.