mirror of
https://github.com/libretro/RetroArch.git
synced 2025-01-24 18:36:31 +00:00
Allow defining libraries as C89 incompatible in qb/config.params.sh.
This commit is contained in:
parent
82f08c42a6
commit
40ca0baa07
@ -5,6 +5,7 @@ HAVE_XMB=auto # Enable XMB menu
|
||||
HAVE_DYNAMIC=yes # Disable dynamic loading of libretro library
|
||||
HAVE_SDL=auto # SDL support
|
||||
HAVE_SDL2=auto # SDL2 support (disables SDL 1.x)
|
||||
C89_SDL2=no
|
||||
HAVE_LIBUSB=auto # Libusb HID support
|
||||
HAVE_UDEV=auto # Udev/Evdev gamepad support
|
||||
HAVE_LIBRETRO= # libretro library used
|
||||
@ -43,10 +44,12 @@ HAVE_AL=auto # Enable OpenAL support
|
||||
HAVE_JACK=auto # Enable JACK support
|
||||
HAVE_COREAUDIO=auto # Enable CoreAudio support
|
||||
HAVE_PULSE=auto # Enable PulseAudio support
|
||||
C89_PULSE=no
|
||||
HAVE_FREETYPE=auto # Enable FreeType support
|
||||
HAVE_STB_FONT=yes # Disable stb_truetype font support
|
||||
HAVE_XVIDEO=auto # Enable XVideo support
|
||||
HAVE_PYTHON=auto # Enable Python 3 support for shaders
|
||||
C89_PYTHON=no
|
||||
HAVE_V4L2=auto # Enable video4linux2 support
|
||||
HAVE_NEON=no # Forcefully enable ARM NEON optimizations
|
||||
HAVE_SSE=no # Forcefully enable x86 SSE optimizations (SSE, SSE2)
|
||||
|
@ -212,7 +212,11 @@ create_config_header()
|
||||
|
||||
while [ "$1" ]; do
|
||||
case $(eval echo \$HAVE_$1) in
|
||||
'yes') echo "#define HAVE_$1 1";;
|
||||
'yes')
|
||||
if [ "$(eval echo \$C89_$1)" = "no" ]; then echo "#if __cplusplus || __STDC_VERSION__ >= 199901L"; fi
|
||||
echo "#define HAVE_$1 1"
|
||||
if [ "$(eval echo \$C89_$1)" = "no" ]; then echo "#endif"; fi
|
||||
;;
|
||||
'no') echo "/* #undef HAVE_$1 */";;
|
||||
esac
|
||||
shift
|
||||
@ -247,7 +251,11 @@ create_config_make()
|
||||
|
||||
while [ "$1" ]; do
|
||||
case $(eval echo \$HAVE_$1) in
|
||||
'yes') echo "HAVE_$1 = 1";;
|
||||
'yes')
|
||||
if [ "$(eval echo \$C89_$1)" = "no" ]; then echo "ifneq (\$(C89_BUILD),1)"; fi
|
||||
echo "HAVE_$1 = 1"
|
||||
if [ "$(eval echo \$C89_$1)" = "no" ]; then echo "endif"; fi
|
||||
;;
|
||||
'no') echo "HAVE_$1 = 0";;
|
||||
esac
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user