Skip to content
Snippets Groups Projects
  • Corey Farrell's avatar
    2d4dc0c9
    Fix error's produced by astmm.h when standard allocators are used. · 2d4dc0c9
    Corey Farrell authored
    astmm.h includes defines that are meant to cause error's when standard
    allocators (malloc, calloc, free, etc) are used.  It actually only
    causes a warning, which is not always caught on certain sources.  In
    modules this unknown symbol is not detected until runtime, where the
    module fails to load.  This modifies the define's so that using one
    of the blocked functions will cause a compile error regardless of
    CFLAGS.
    
    Moved spandsp header includes to before asterisk.h so the static inline
    functions can continue using malloc and free.  Although these functions
    are never called and optimized away, the updated replacement macro's
    would still cause a failure.
    
    Change-Id: I532640aca0913ba9da3b18c04a0f010ca1715af5
    2d4dc0c9
    History
    Fix error's produced by astmm.h when standard allocators are used.
    Corey Farrell authored
    astmm.h includes defines that are meant to cause error's when standard
    allocators (malloc, calloc, free, etc) are used.  It actually only
    causes a warning, which is not always caught on certain sources.  In
    modules this unknown symbol is not detected until runtime, where the
    module fails to load.  This modifies the define's so that using one
    of the blocked functions will cause a compile error regardless of
    CFLAGS.
    
    Moved spandsp header includes to before asterisk.h so the static inline
    functions can continue using malloc and free.  Although these functions
    are never called and optimized away, the updated replacement macro's
    would still cause a failure.
    
    Change-Id: I532640aca0913ba9da3b18c04a0f010ca1715af5