libao 1.0.0 does not compile on Mac OS X 10.5
As the title says, libao 1.0.0 does not compile on Mac OS X 10.5. This is the error:
/bin/sh ../../../libtool --tag=CC --mode=compile gcc -DPACKAGE_NAME="libao" -DPACKAGE_TARNAME="libao" -DPACKAGE_VERSION="1.0.0" -DPACKAGE_STRING="libao\ 1.0.0" -DPACKAGE_BUGREPORT="monty@xiph.org" -DPACKAGE="libao" -DVERSION="1.0.0" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=".libs/" -DHAVE_DLFCN_H=1 -DHAVE_DLOPEN=1 -DHAVE_LIBPTHREAD=1 -DDLOPEN_FLAG=(RTLD_LAZY) -DSHARED_LIB_EXT=".so" -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=4 -I. -I. -I../../../include/ao -I../../../include -DAO_SYSTEM_CONFIG='"/sw/etc/libao.conf"' -I/sw/include -D__NO_MATH_INLINES -fsigned-char -g -O2 -DAO_BUILDING_LIBAO -c -o ao_macosx.lo ao_macosx.c libtool: compile: gcc -DPACKAGE_NAME="libao" -DPACKAGE_TARNAME="libao" -DPACKAGE_VERSION="1.0.0" "-DPACKAGE_STRING="libao 1.0.0"" -DPACKAGE_BUGREPORT="monty@xiph.org" -DPACKAGE="libao" -DVERSION="1.0.0" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=".libs/" -DHAVE_DLFCN_H=1 -DHAVE_DLOPEN=1 -DHAVE_LIBPTHREAD=1 "-DDLOPEN_FLAG=(RTLD_LAZY)" -DSHARED_LIB_EXT=".so" -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=4 -I. -I. -I../../../include/ao -I../../../include -DAO_SYSTEM_CONFIG="/sw/etc/libao.conf" -I/sw/include -D__NO_MATH_INLINES -fsigned-char -g -O2 -DAO_BUILDING_LIBAO -c ao_macosx.c -fno-common -DPIC -o .libs/ao_macosx.o ao_macosx.c:74: error: syntax error before 'AudioComponentInstance'
The attached patch fixes this issue. It might even restore compatibility with 10.4, but I cannot test that right now (but will try to find out).