]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Avoid use of config.h in build environment tools in spandsp
authorSteve Underwood <steveu@haswell.coppice.org>
Fri, 11 Oct 2013 15:42:06 +0000 (23:42 +0800)
committerSteve Underwood <steveu@haswell.coppice.org>
Fri, 11 Oct 2013 15:42:06 +0000 (23:42 +0800)
libs/spandsp/src/fax.c
libs/spandsp/src/make_at_dictionary.c
libs/spandsp/src/make_cielab_luts.c
libs/spandsp/src/make_math_fixed_tables.c
libs/spandsp/src/make_modem_filter.c
libs/spandsp/src/make_t43_gray_code_tables.c
libs/spandsp/tests/super_tone_tx_tests.c

index 90409da7a4da3ff4c5466e0faa52f234692ce2ea..8d8b3b25bc0ff17a4fc498adb393037ea0dbcf91 100644 (file)
@@ -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:
         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;
     case T30_MODEM_V17:
         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
     span_log(&s->logging, SPAN_LOG_FLOW, "Set tx type %d\n", type);
     if (t->current_tx_type == type)
         return;
+
     switch (type)
     {
     case T30_MODEM_PAUSE:
index 7f05dd9b14532fce550e36ce365ccd0ee25e9c1d..3a881af992ec93609d6f8d36db28da5617f1b2f4 100644 (file)
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
 
-#if defined(HAVE_CONFIG_H)
-#include "config.h"
-#endif
-
 #include <inttypes.h>
 #include <stdlib.h>
 #include <stdio.h>
index 5fca6c72362d520ed9a2ea984edafb4459f6d62b..b143817d85f9f865ec3aaccb6fa5b8b4f98c0af5 100644 (file)
 
 /*! \file */
 
-#if defined(HAVE_CONFIG_H)
-#include "config.h"
-#endif
-
 #include <inttypes.h>
 #include <stdlib.h>
 #include <stdio.h>
 #include <fcntl.h>
 #include <unistd.h>
 #include <memory.h>
-#if defined(HAVE_TGMATH_H)
-#include <tgmath.h>
-#endif
-#if defined(HAVE_MATH_H)
 #include <math.h>
-#endif
 
 typedef struct
 {
index 64b33ca3283a90b6eee57d6135bed25635fd15be..075cb15bd2cc07cb62794bfbc671e509ffe18f36 100644 (file)
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
 
-#if defined(HAVE_CONFIG_H)
-#include "config.h"
-#endif
-
 #include <inttypes.h>
 #include <stdlib.h>
 #include <stdio.h>
index b0faed4a0207524883104d36e344d99a43e07d0e..ec290c3e0719ad19c3f8a91d0fc3dfd5461505dc 100644 (file)
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
 
-#if defined(HAVE_CONFIG_H)
-#include "config.h"
-#endif
-
 #include <inttypes.h>
 #include <stdlib.h>
 #include <unistd.h>
 #include <stdio.h>
 #include <time.h>
 #include <fcntl.h>
-#if defined(HAVE_TGMATH_H)
-#include <tgmath.h>
-#endif
-#if defined(HAVE_MATH_H)
 #include <math.h>
-#endif
 #if defined(HAVE_STDBOOL_H)
 #include <stdbool.h>
 #else
 #include "spandsp/stdbool.h"
 #endif
-#include "floating_fudge.h"
 #if defined(__sunos)  ||  defined(__solaris)  ||  defined(__sun)
 #include <getopt.h>
 #endif
index 041b907d7916956e64856e3319c5b212bb17a354..90117c5d837cff59ac50eb801dcb10bed0aadab2 100644 (file)
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
 
-#if defined(HAVE_CONFIG_H)
-#include "config.h"
-#endif
-
 #include <inttypes.h>
 #include <stdlib.h>
 #include <stdio.h>
index 561b333c36ba5b2f8f1ad595f1e63b04357b5384..9f32ea6c78bd78e05bb15a57640094d68b29dba5 100644 (file)
@@ -41,7 +41,6 @@
 #include <ctype.h>
 #include <time.h>
 #include <inttypes.h>
-#include <sys/socket.h>
 #include <sndfile.h>
 
 #if defined(HAVE_LIBXML_XMLMEMORY_H)