00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00026 # ifndef LIBMAD_GLOBAL_H
00027 # define LIBMAD_GLOBAL_H
00028
00029
00030
00031 # if defined(DEBUG) && defined(NDEBUG)
00032 # error "cannot define both DEBUG and NDEBUG"
00033 # endif
00034
00035 # if defined(DEBUG)
00036 # include <stdio.h>
00037 # endif
00038
00039
00040
00041 # if defined(OPT_SPEED) && defined(OPT_ACCURACY)
00042 # error "cannot optimize for both speed and accuracy"
00043 # endif
00044
00045 # if defined(OPT_SPEED) && !defined(OPT_SSO)
00046 # define OPT_SSO
00047 # endif
00048
00049 # if defined(HAVE_UNISTD_H) && defined(HAVE_WAITPID) && \
00050 defined(HAVE_FCNTL) && defined(HAVE_PIPE) && defined(HAVE_FORK)
00051 # define USE_ASYNC
00052 # endif
00053
00054 # if !defined(HAVE_ASSERT_H)
00055 # if defined(NDEBUG)
00056 # define assert(x)
00057 # else
00058 # define assert(x) do { if (!(x)) abort(); } while (0)
00059 # endif
00060 # endif
00061
00062 # endif