Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Added X include path so SDL_syswm.h works correctly on systems with X…
Browse files Browse the repository at this point in the history
…11 in a non-standard directory.
  • Loading branch information
slouken committed Jul 21, 2013
1 parent 8d909ff commit a18a9bb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions configure
Expand Up @@ -19562,6 +19562,9 @@ $as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"

# Needed so SDL applications can include SDL_syswm.h
SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"

if test x$enable_x11_shared = xmaybe; then
enable_x11_shared=$x11_symbols_private
fi
Expand Down
3 changes: 3 additions & 0 deletions configure.in
Expand Up @@ -1173,6 +1173,9 @@ AC_HELP_STRING([--enable-x11-shared], [dynamically load X11 support [[default=ma
SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"

# Needed so SDL applications can include SDL_syswm.h
SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"

if test x$enable_x11_shared = xmaybe; then
enable_x11_shared=$x11_symbols_private
fi
Expand Down

0 comments on commit a18a9bb

Please sign in to comment.