diff options
Diffstat (limited to 'res/res_fax_spandsp.c')
-rw-r--r-- | res/res_fax_spandsp.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/res/res_fax_spandsp.c b/res/res_fax_spandsp.c index 42492273d..ddbb17840 100644 --- a/res/res_fax_spandsp.c +++ b/res/res_fax_spandsp.c @@ -48,12 +48,8 @@ <support_level>extended</support_level> ***/ -/* Include spandsp headers before asterisk.h so the inline functions can continue using - * malloc and free, even with MALLOC_DEBUG enabled. */ -#define SPANDSP_EXPOSE_INTERNAL_STRUCTURES -#include <spandsp.h> -#include <spandsp/version.h> - +/* Needed for spandsp headers */ +#define ASTMM_LIBC ASTMM_IGNORE #include "asterisk.h" ASTERISK_REGISTER_FILE() @@ -69,6 +65,10 @@ ASTERISK_REGISTER_FILE() #include "asterisk/channel.h" #include "asterisk/format_cache.h" +#define SPANDSP_EXPOSE_INTERNAL_STRUCTURES +#include <spandsp.h> +#include <spandsp/version.h> + #define SPANDSP_FAX_SAMPLES 160 #define SPANDSP_FAX_TIMER_RATE 8000 / SPANDSP_FAX_SAMPLES /* 50 ticks per second, 20ms, 160 samples per second */ #define SPANDSP_ENGAGE_UDPTL_NAT_RETRY 3 |