[MPlayer-dev-eng] libmp1e bugreport

pl p_l at tfz.net
Sun Dec 9 00:41:56 CET 2001


On Sun, Dec 09, 2001 at 12:07:56AM +0100, Felix Buenemann wrote:
> On Saturday, 8. December 2001 18:01, you wrote:
> > doesn't help :(
> >
> > compile after:
> >
> > #ifndef HAVE_MEMALIGN
> > #ifndef __FreeBSD__
> > ...
> > #endif
> > #endif // !HAVE_MEMALIGN
> why that? memalign should be detected by configure and #define HAVE_MEMALIGN 
> only defined if successfull!

FWIW, memalign is always available since "emulated" via macros in
config.h:
  /* memalign is mapped to malloc if unsupported */
  $_def_memalign
  #ifndef HAVE_MEMALIGN
  # define memalign(a,b) malloc(b)
  #endif

Just have to do a
  #include <config.h>
  #ifdef HAVE_MALLOC_H
  #include <malloc.h>
  #endif

  //use memalign() & malloc()


-- 
Best regards,
  pl



More information about the MPlayer-dev-eng mailing list