12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- # ifndef LIBMAD_GLOBAL_H
- # define LIBMAD_GLOBAL_H
- # if defined(DEBUG) && defined(NDEBUG)
- # error "cannot define both DEBUG and NDEBUG"
- # endif
- # if defined(DEBUG)
- # include <stdio.h>
- # endif
- # if defined(OPT_SPEED) && defined(OPT_ACCURACY)
- # error "cannot optimize for both speed and accuracy"
- # endif
- # if defined(OPT_SPEED) && !defined(OPT_SSO)
- # define OPT_SSO
- # 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)
- # else
- # define assert(x) do { if (!(x)) abort(); } while (0)
- # endif
- # endif
- # endif
|