Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

This check in updates SDL_atomic.h to reflect the new set of atomic o…

…perations in 32 and 64 bit form.

It also update configure.in to compile the linux version of the library. The three versions are all dummies
implementations that do nothing. They are being checked in as place holders. Mostly, I just wanted to get
place holders and the configure.in checked in.
  • Loading branch information
pendletonrc committed Jun 24, 2009
1 parent 6af9ae3 commit 321174d0cae51e549c0a4f74694915ae13fdf30a
Showing with 811 additions and 663 deletions.
  1. +16 −0 configure.in
  2. +220 −616 include/SDL_atomic.h
  3. +176 −0 src/atomic/linux/SDL_atomic.c
  4. +176 −0 src/atomic/macosx/SDL_atomic.c
  5. +176 −0 src/atomic/win32/SDL_atomic.c
  6. +47 −47 test/testatomic.c
@@ -217,6 +217,12 @@ SOURCES="$SOURCES $srcdir/src/video/*.c"

dnl Enable/disable various subsystems of the SDL library

AC_ARG_ENABLE(atomic,
AC_HELP_STRING([--enable-atomic], [Enable the atomic operations subsystem [[default=yes]]]),
, enable_atomic=yes)
if test x$enable_atomic != xyes; then
AC_DEFINE(SDL_ATOMIC_DISABLED)
fi
AC_ARG_ENABLE(audio,
AC_HELP_STRING([--enable-audio], [Enable the audio subsystem [[default=yes]]]),
, enable_audio=yes)
@@ -2433,6 +2439,16 @@ case "$host" in
;;
esac
fi
# Set up files for the atomic operations library
if test x$enable_atomic = xyes; then
case $ARCH in
linux)
AC_DEFINE(SDL_ATOMIC_LINUX)
SOURCES="$SOURCES $srcdir/src/atomic/linux/*.c"
have_atomic=yes
;;
esac
fi
# Set up files for the joystick library
if test x$enable_joystick = xyes; then
case $ARCH in

0 comments on commit 321174d

Please sign in to comment.