提交 9990be42 authored 作者: Steve Underwood's avatar Steve Underwood

Avoid use of config.h in build environment tools in spandsp

上级 1cd6d44b
...@@ -255,7 +255,6 @@ static void fax_set_rx_type(void *user_data, int type, int bit_rate, int short_t ...@@ -255,7 +255,6 @@ static void fax_set_rx_type(void *user_data, int type, int bit_rate, int short_t
{ {
case T30_MODEM_V21: case T30_MODEM_V21:
fax_modems_start_slow_modem(t, FAX_MODEM_V21_RX); fax_modems_start_slow_modem(t, FAX_MODEM_V21_RX);
fax_modems_set_rx_handler(t, (span_rx_handler_t) &fsk_rx, &t->v21_rx, (span_rx_fillin_handler_t) &fsk_rx_fillin, &t->v21_rx);
break; break;
case T30_MODEM_V17: case T30_MODEM_V17:
fax_modems_start_fast_modem(t, FAX_MODEM_V17_RX, bit_rate, short_train, use_hdlc); fax_modems_start_fast_modem(t, FAX_MODEM_V17_RX, bit_rate, short_train, use_hdlc);
...@@ -286,6 +285,7 @@ static void fax_set_tx_type(void *user_data, int type, int bit_rate, int short_t ...@@ -286,6 +285,7 @@ static void fax_set_tx_type(void *user_data, int type, int bit_rate, int short_t
span_log(&s->logging, SPAN_LOG_FLOW, "Set tx type %d\n", type); span_log(&s->logging, SPAN_LOG_FLOW, "Set tx type %d\n", type);
if (t->current_tx_type == type) if (t->current_tx_type == type)
return; return;
switch (type) switch (type)
{ {
case T30_MODEM_PAUSE: case T30_MODEM_PAUSE:
......
...@@ -24,10 +24,6 @@ ...@@ -24,10 +24,6 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/ */
#if defined(HAVE_CONFIG_H)
#include "config.h"
#endif
#include <inttypes.h> #include <inttypes.h>
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
......
...@@ -25,22 +25,13 @@ ...@@ -25,22 +25,13 @@
/*! \file */ /*! \file */
#if defined(HAVE_CONFIG_H)
#include "config.h"
#endif
#include <inttypes.h> #include <inttypes.h>
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#include <fcntl.h> #include <fcntl.h>
#include <unistd.h> #include <unistd.h>
#include <memory.h> #include <memory.h>
#if defined(HAVE_TGMATH_H)
#include <tgmath.h>
#endif
#if defined(HAVE_MATH_H)
#include <math.h> #include <math.h>
#endif
typedef struct typedef struct
{ {
......
...@@ -24,10 +24,6 @@ ...@@ -24,10 +24,6 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/ */
#if defined(HAVE_CONFIG_H)
#include "config.h"
#endif
#include <inttypes.h> #include <inttypes.h>
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
......
...@@ -24,10 +24,6 @@ ...@@ -24,10 +24,6 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/ */
#if defined(HAVE_CONFIG_H)
#include "config.h"
#endif
#include <inttypes.h> #include <inttypes.h>
#include <stdlib.h> #include <stdlib.h>
#include <unistd.h> #include <unistd.h>
...@@ -35,18 +31,12 @@ ...@@ -35,18 +31,12 @@
#include <stdio.h> #include <stdio.h>
#include <time.h> #include <time.h>
#include <fcntl.h> #include <fcntl.h>
#if defined(HAVE_TGMATH_H)
#include <tgmath.h>
#endif
#if defined(HAVE_MATH_H)
#include <math.h> #include <math.h>
#endif
#if defined(HAVE_STDBOOL_H) #if defined(HAVE_STDBOOL_H)
#include <stdbool.h> #include <stdbool.h>
#else #else
#include "spandsp/stdbool.h" #include "spandsp/stdbool.h"
#endif #endif
#include "floating_fudge.h"
#if defined(__sunos) || defined(__solaris) || defined(__sun) #if defined(__sunos) || defined(__solaris) || defined(__sun)
#include <getopt.h> #include <getopt.h>
#endif #endif
......
...@@ -24,10 +24,6 @@ ...@@ -24,10 +24,6 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/ */
#if defined(HAVE_CONFIG_H)
#include "config.h"
#endif
#include <inttypes.h> #include <inttypes.h>
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
......
...@@ -41,7 +41,6 @@ ...@@ -41,7 +41,6 @@
#include <ctype.h> #include <ctype.h>
#include <time.h> #include <time.h>
#include <inttypes.h> #include <inttypes.h>
#include <sys/socket.h>
#include <sndfile.h> #include <sndfile.h>
#if defined(HAVE_LIBXML_XMLMEMORY_H) #if defined(HAVE_LIBXML_XMLMEMORY_H)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论