diff options
Diffstat (limited to 'util707.h')
-rw-r--r-- | util707.h | 38 |
1 files changed, 32 insertions, 6 deletions
@@ -1,20 +1,46 @@ +/* + * This file is part of tk707. + * + * Copyright (C) 2000, 2001, 2002, 2003, 2004 Chris Willing and Pierre Saramito + * + * tk707 is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * Foobar is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Foobar; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ #ifndef __UTIL707_H_ #define __UTIL707_H_ #include <stdio.h> #include <errno.h> #include <stdlib.h> + #ifdef HAVE_CONFIG_H #include "config.h" -#endif HAVE_CONFIG_H +#endif /* HAVE_CONFIG_H */ -#ifdef HAVE_LIBASOUND -#ifdef HAVE_SYS_ASOUNDLIB_H -#include <sys/asoundlib.h> -#else +#ifdef HAVE_ALSA_ASOUNDLIB_H #include <alsa/asoundlib.h> +#elif HAVE_LIBASOUND +#include <sys/asoundlib.h> +#endif + +#if (SND_LIB_MAJOR == 0) && (SND_LIB_MINOR >= 9) +#define HAVE_ALSA9 +#endif + +#if (SND_LIB_MAJOR > 0) +#define HAVE_ALSA9 #endif -#endif HAVE_LIBASOUND #ifndef HAVE_BOOL typedef int bool; |