From efd9e62e090c5a190efc592fd1ddfc436db03635 Mon Sep 17 00:00:00 2001 From: Bob Pendleton Date: Mon, 6 Jul 2009 21:56:38 +0000 Subject: [PATCH] Applied patch from bug id=762 provided by Pierre Phaneuf this patch enables compilation of SDL_atomic stuff on the Mac. --- configure.in | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/configure.in b/configure.in index c03f2cf04..12afbfc2e 100644 --- a/configure.in +++ b/configure.in @@ -2881,6 +2881,12 @@ AC_HELP_STRING([--enable-render-d3d], [enable the Direct3D render driver [[defau SOURCES="$SOURCES $srcdir/src/audio/macrom/*.c" have_audio=yes fi + # Set up files for the atomic operations library + if test x$enable_atomic = xyes; then + AC_DEFINE(SDL_ATOMIC_MACOSX) + SOURCES="$SOURCES $srcdir/src/atomic/macosx/*.c" + have_atomic=yes + fi # Set up files for the joystick library if test x$enable_joystick = xyes; then AC_DEFINE(SDL_JOYSTICK_IOKIT)