From 9b31a5d8790690d0704bd329d0c76572beecf42b Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sun, 9 May 2010 10:00:33 -0700 Subject: [PATCH] Fixed Eric's changes to allow building from the command line. --- configure.in | 4 ++++ src/file/SDL_rwops.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/configure.in b/configure.in index 771d9f984..00c15101d 100644 --- a/configure.in +++ b/configure.in @@ -2652,6 +2652,10 @@ AC_HELP_STRING([--enable-render-d3d], [enable the Direct3D render driver [[defau SOURCES="$SOURCES $srcdir/src/timer/unix/*.c" have_timers=yes fi + # Set up additional files for the file library + if test x$enable_file = xyes; then + SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m" + fi # The Mac OS X platform requires special setup. EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings" EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc" diff --git a/src/file/SDL_rwops.c b/src/file/SDL_rwops.c index b0ed77523..99e207b4f 100644 --- a/src/file/SDL_rwops.c +++ b/src/file/SDL_rwops.c @@ -29,7 +29,7 @@ #include "SDL_rwops.h" #ifdef __APPLE__ -#include "SDL_rwopsbundlesupport.h" +#include "cocoa/SDL_rwopsbundlesupport.h" #endif /* __APPLE__ */ #ifdef __NDS__