diff options
Diffstat (limited to 'src/libmad/global.h')
-rw-r--r-- | src/libmad/global.h | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/src/libmad/global.h b/src/libmad/global.h index 6677092c6..4bde6a82a 100644 --- a/src/libmad/global.h +++ b/src/libmad/global.h @@ -1,5 +1,5 @@ /* - * mad - MPEG audio decoder + * libmad - MPEG audio decoder library * Copyright (C) 2000-2001 Robert Leslie * * This program is free software; you can redistribute it and/or modify @@ -16,7 +16,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * - * $Id: global.h,v 1.1 2001/08/12 02:57:55 guenter Exp $ + * $Id: global.h,v 1.2 2002/04/30 18:46:58 miguelfreitas Exp $ */ # ifndef LIBMAD_GLOBAL_H @@ -42,4 +42,17 @@ # define OPT_SSO 1 # endif +# if defined(HAVE_UNISTD_H) && defined(HAVE_WAITPID) && \ + defined(HAVE_FCNTL) && defined(HAVE_PIPE) && defined(HAVE_FORK) +# define USE_ASYNC +# endif + +# if !defined(HAVE_ASSERT_H) +# if defined(NDEBUG) +# define assert(x) /* nothing */ +# else +# define assert(x) do { if (!(x)) abort(); } while (0) +# endif +# endif + # endif |