aboutsummaryrefslogtreecommitdiffstats
path: root/codecs
diff options
context:
space:
mode:
authorrizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b>2007-11-16 20:04:58 +0000
committerrizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b>2007-11-16 20:04:58 +0000
commit883346d64a852193fb4119d4399aa0f5a54d8ae8 (patch)
treec012d8f76915d410cf7446b1efc51e3c2e3f5e95 /codecs
parent4948a0f37cad4e682bdd7860e0c2f01c6cb38ef7 (diff)
Start untangling header inclusion in a way that does not affect
build times - tested, there is no measureable difference before and after this commit. In this change: use asterisk/compat.h to include a small set of system headers: inttypes.h, unistd.h, stddef.h, stddint.h, sys/types.h, stdarg.h, stdlib.h, alloca.h, stdio.h Where available, the inclusion is conditional on HAVE_FOO_H as determined by autoconf. Normally, source files should not include any of the above system headers, and instead use either "asterisk.h" or "asterisk/compat.h" which does it better. For the time being I have left alone second-level directories (main/db1-ast, etc.). git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89333 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'codecs')
-rw-r--r--codecs/codec_a_mu.c4
-rw-r--r--codecs/codec_adpcm.c4
-rw-r--r--codecs/codec_alaw.c4
-rw-r--r--codecs/codec_g722.c4
-rw-r--r--codecs/codec_g726.c4
-rw-r--r--codecs/codec_gsm.c4
-rw-r--r--codecs/codec_ilbc.c4
-rw-r--r--codecs/codec_lpc10.c4
-rw-r--r--codecs/codec_speex.c4
-rw-r--r--codecs/codec_ulaw.c4
-rw-r--r--codecs/codec_zap.c4
11 files changed, 0 insertions, 44 deletions
diff --git a/codecs/codec_a_mu.c b/codecs/codec_a_mu.c
index 40e14ca5e..8cf89b68a 100644
--- a/codecs/codec_a_mu.c
+++ b/codecs/codec_a_mu.c
@@ -29,10 +29,6 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include <fcntl.h>
#include <netinet/in.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
#include "asterisk/lock.h"
#include "asterisk/logger.h"
diff --git a/codecs/codec_adpcm.c b/codecs/codec_adpcm.c
index a40bbbc9f..c63544b77 100644
--- a/codecs/codec_adpcm.c
+++ b/codecs/codec_adpcm.c
@@ -33,10 +33,6 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include <fcntl.h>
#include <netinet/in.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
#include "asterisk/lock.h"
#include "asterisk/logger.h"
diff --git a/codecs/codec_alaw.c b/codecs/codec_alaw.c
index f4436d162..c7a85feb2 100644
--- a/codecs/codec_alaw.c
+++ b/codecs/codec_alaw.c
@@ -29,10 +29,6 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include <fcntl.h>
#include <netinet/in.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
#include "asterisk/lock.h"
#include "asterisk/logger.h"
diff --git a/codecs/codec_g722.c b/codecs/codec_g722.c
index 54802dc8b..38014dabe 100644
--- a/codecs/codec_g722.c
+++ b/codecs/codec_g722.c
@@ -32,10 +32,6 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include <fcntl.h>
#include <netinet/in.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
#include "asterisk/lock.h"
#include "asterisk/logger.h"
diff --git a/codecs/codec_g726.c b/codecs/codec_g726.c
index 183c4a9e4..9ef79add7 100644
--- a/codecs/codec_g726.c
+++ b/codecs/codec_g726.c
@@ -33,10 +33,6 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include <fcntl.h>
#include <netinet/in.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
#include "asterisk/lock.h"
#include "asterisk/logger.h"
diff --git a/codecs/codec_gsm.c b/codecs/codec_gsm.c
index 3fbcf9c8e..99b5322d0 100644
--- a/codecs/codec_gsm.c
+++ b/codecs/codec_gsm.c
@@ -35,11 +35,7 @@
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include <fcntl.h>
-#include <stdlib.h>
-#include <unistd.h>
#include <netinet/in.h>
-#include <string.h>
-#include <stdio.h>
#include "asterisk/lock.h"
#include "asterisk/translate.h"
diff --git a/codecs/codec_ilbc.c b/codecs/codec_ilbc.c
index ea84eded3..5caec75f5 100644
--- a/codecs/codec_ilbc.c
+++ b/codecs/codec_ilbc.c
@@ -30,11 +30,7 @@
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include <fcntl.h>
-#include <stdlib.h>
-#include <unistd.h>
#include <netinet/in.h>
-#include <string.h>
-#include <stdio.h>
#include "asterisk/lock.h"
#include "asterisk/translate.h"
diff --git a/codecs/codec_lpc10.c b/codecs/codec_lpc10.c
index ca4964336..bee74ddf9 100644
--- a/codecs/codec_lpc10.c
+++ b/codecs/codec_lpc10.c
@@ -32,11 +32,7 @@
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include <fcntl.h>
-#include <stdlib.h>
-#include <unistd.h>
#include <netinet/in.h>
-#include <string.h>
-#include <stdio.h>
#include "asterisk/lock.h"
#include "asterisk/translate.h"
diff --git a/codecs/codec_speex.c b/codecs/codec_speex.c
index bbb6be238..205349056 100644
--- a/codecs/codec_speex.c
+++ b/codecs/codec_speex.c
@@ -39,11 +39,7 @@
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include <fcntl.h>
-#include <stdlib.h>
-#include <unistd.h>
#include <netinet/in.h>
-#include <string.h>
-#include <stdio.h>
#include <speex/speex.h>
/* We require a post 1.1.8 version of Speex to enable preprocessing
diff --git a/codecs/codec_ulaw.c b/codecs/codec_ulaw.c
index b10054f3e..47c0b8a93 100644
--- a/codecs/codec_ulaw.c
+++ b/codecs/codec_ulaw.c
@@ -29,10 +29,6 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include <fcntl.h>
#include <netinet/in.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
#include "asterisk/lock.h"
#include "asterisk/logger.h"
diff --git a/codecs/codec_zap.c b/codecs/codec_zap.c
index 11e18600a..31c84438a 100644
--- a/codecs/codec_zap.c
+++ b/codecs/codec_zap.c
@@ -36,11 +36,7 @@
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include <fcntl.h>
-#include <stdlib.h>
-#include <unistd.h>
#include <netinet/in.h>
-#include <string.h>
-#include <stdio.h>
#include <sys/ioctl.h>
#include <errno.h>
#include <sys/mman.h>