Navigation Menu

Skip to content

Commit

Permalink
Miscellaneous Mac OS X fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Apr 17, 2006
1 parent d725659 commit af200c6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
8 changes: 6 additions & 2 deletions configure.in
Expand Up @@ -1811,6 +1811,9 @@ AC_HELP_STRING([--enable-sdl-dlopen], [use dlopen for shared object loading [[de
AC_TRY_COMPILE([
#include <dlfcn.h>
],[
#if defined(MAC_OS_X_VERSION_MIN_REQUIRED) && MAC_OS_X_VERSION_MIN_REQUIRED <= 1020
#error Use dlcompat for Mac OS X 10.2 compatibility
#endif
],[
have_dlopen=yes
])
Expand Down Expand Up @@ -2320,7 +2323,8 @@ case "$host" in
ARCH=macosx

# Mac OS X builds with both the Carbon and OSX APIs at the moment
EXTRA_CFLAGS="-DTARGET_API_MAC_CARBON -DTARGET_API_MAC_OSX"
EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"

# HACK: Reset EXTRA_LDFLAGS; the only thing it contains at this point
# is -lm which is not needed under Mac OS X. But for some reasons it
Expand All @@ -2331,7 +2335,7 @@ case "$host" in
CheckDummyVideo
CheckDiskAudio
CheckDummyAudio
#CheckDLOPEN # Don't check dlopen(), to retain 10.2 compatibility
CheckDLOPEN
CheckCOCOA
CheckCARBON
CheckX11
Expand Down
5 changes: 5 additions & 0 deletions include/SDL_config_macosx.h
Expand Up @@ -95,7 +95,12 @@
#define SDL_JOYSTICK_IOKIT 1

/* Enable various shared object loading systems */
#ifdef __ppc__
/* For Mac OS X 10.2 compatibility */
#define SDL_LOADSO_DLCOMPAT 1
#else
#define SDL_LOADSO_DLOPEN 1
#endif

/* Enable various threading systems */
#define SDL_THREAD_PTHREAD 1
Expand Down

0 comments on commit af200c6

Please sign in to comment.