aboutsummaryrefslogtreecommitdiffstats
path: root/formats
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 /formats
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 'formats')
-rw-r--r--formats/format_g723.c4
-rw-r--r--formats/format_g726.c4
-rw-r--r--formats/format_g729.c4
-rw-r--r--formats/format_gsm.c4
-rw-r--r--formats/format_h263.c4
-rw-r--r--formats/format_h264.c4
-rw-r--r--formats/format_ilbc.c4
-rw-r--r--formats/format_jpeg.c5
-rw-r--r--formats/format_ogg_vorbis.c5
-rw-r--r--formats/format_pcm.c6
-rw-r--r--formats/format_sln.c4
-rw-r--r--formats/format_vox.c4
-rw-r--r--formats/format_wav.c4
-rw-r--r--formats/format_wav_gsm.c4
14 files changed, 1 insertions, 59 deletions
diff --git a/formats/format_g723.c b/formats/format_g723.c
index 64883fe88..9a9f1af30 100644
--- a/formats/format_g723.c
+++ b/formats/format_g723.c
@@ -29,13 +29,9 @@
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
-#include <unistd.h>
#include <netinet/in.h>
#include <arpa/inet.h>
-#include <stdlib.h>
-#include <stdio.h>
#include <errno.h>
-#include <string.h>
#include <sys/time.h>
#include "asterisk/lock.h"
diff --git a/formats/format_g726.c b/formats/format_g726.c
index ffaaa367c..93e3dc873 100644
--- a/formats/format_g726.c
+++ b/formats/format_g726.c
@@ -32,14 +32,10 @@
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
-#include <unistd.h>
#include <netinet/in.h>
#include <arpa/inet.h>
-#include <stdlib.h>
#include <sys/time.h>
-#include <stdio.h>
#include <errno.h>
-#include <string.h>
#include "asterisk/lock.h"
#include "asterisk/options.h"
diff --git a/formats/format_g729.c b/formats/format_g729.c
index 5ad16d97e..003d93473 100644
--- a/formats/format_g729.c
+++ b/formats/format_g729.c
@@ -30,14 +30,10 @@
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
-#include <unistd.h>
#include <netinet/in.h>
#include <arpa/inet.h>
-#include <stdlib.h>
#include <sys/time.h>
-#include <stdio.h>
#include <errno.h>
-#include <string.h>
#include "asterisk/lock.h"
#include "asterisk/channel.h"
diff --git a/formats/format_gsm.c b/formats/format_gsm.c
index 4bb49eb45..55c65b11b 100644
--- a/formats/format_gsm.c
+++ b/formats/format_gsm.c
@@ -27,14 +27,10 @@
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
-#include <unistd.h>
#include <netinet/in.h>
#include <arpa/inet.h>
-#include <stdlib.h>
#include <sys/time.h>
-#include <stdio.h>
#include <errno.h>
-#include <string.h>
#include "asterisk/lock.h"
#include "asterisk/channel.h"
diff --git a/formats/format_h263.c b/formats/format_h263.c
index 90fedfb55..09e4d3c4e 100644
--- a/formats/format_h263.c
+++ b/formats/format_h263.c
@@ -28,14 +28,10 @@
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
-#include <unistd.h>
#include <netinet/in.h>
#include <arpa/inet.h>
-#include <stdlib.h>
#include <sys/time.h>
-#include <stdio.h>
#include <errno.h>
-#include <string.h>
#include "asterisk/lock.h"
#include "asterisk/channel.h"
diff --git a/formats/format_h264.c b/formats/format_h264.c
index e2bc36c2e..05b2624e7 100644
--- a/formats/format_h264.c
+++ b/formats/format_h264.c
@@ -28,14 +28,10 @@
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
-#include <unistd.h>
#include <netinet/in.h>
#include <arpa/inet.h>
-#include <stdlib.h>
#include <sys/time.h>
-#include <stdio.h>
#include <errno.h>
-#include <string.h>
#include "asterisk/lock.h"
#include "asterisk/channel.h"
diff --git a/formats/format_ilbc.c b/formats/format_ilbc.c
index f7d37d557..35278e0b6 100644
--- a/formats/format_ilbc.c
+++ b/formats/format_ilbc.c
@@ -29,14 +29,10 @@
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
-#include <unistd.h>
#include <netinet/in.h>
#include <arpa/inet.h>
-#include <stdlib.h>
#include <sys/time.h>
-#include <stdio.h>
#include <errno.h>
-#include <string.h>
#include "asterisk/lock.h"
#include "asterisk/channel.h"
diff --git a/formats/format_jpeg.c b/formats/format_jpeg.c
index bb0661074..8c4c4e337 100644
--- a/formats/format_jpeg.c
+++ b/formats/format_jpeg.c
@@ -28,15 +28,10 @@
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
-#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/inet.h>
-#include <stdlib.h>
#include <sys/time.h>
-#include <stdio.h>
-#include <unistd.h>
#include <errno.h>
-#include <string.h>
#include "asterisk/channel.h"
#include "asterisk/file.h"
diff --git a/formats/format_ogg_vorbis.c b/formats/format_ogg_vorbis.c
index 14127588b..da0ec0ea0 100644
--- a/formats/format_ogg_vorbis.c
+++ b/formats/format_ogg_vorbis.c
@@ -34,15 +34,10 @@
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
-#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/inet.h>
-#include <stdlib.h>
#include <sys/time.h>
-#include <stdio.h>
-#include <unistd.h>
#include <errno.h>
-#include <string.h>
#include <vorbis/codec.h>
#include <vorbis/vorbisenc.h>
diff --git a/formats/format_pcm.c b/formats/format_pcm.c
index 5c31408e5..05fd02fe6 100644
--- a/formats/format_pcm.c
+++ b/formats/format_pcm.c
@@ -28,14 +28,10 @@
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
-#include <unistd.h>
#include <netinet/in.h>
#include <arpa/inet.h>
-#include <stdlib.h>
-#include <sys/time.h>
-#include <stdio.h>
+// #include <sys/time.h>
#include <errno.h>
-#include <string.h>
#include "asterisk/lock.h"
#include "asterisk/channel.h"
diff --git a/formats/format_sln.c b/formats/format_sln.c
index 8bb369c98..3fe406da3 100644
--- a/formats/format_sln.c
+++ b/formats/format_sln.c
@@ -26,14 +26,10 @@
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
-#include <unistd.h>
#include <netinet/in.h>
#include <arpa/inet.h>
-#include <stdlib.h>
#include <sys/time.h>
-#include <stdio.h>
#include <errno.h>
-#include <string.h>
#include "asterisk/lock.h"
#include "asterisk/channel.h"
diff --git a/formats/format_vox.c b/formats/format_vox.c
index 79cf093dc..4460b21ea 100644
--- a/formats/format_vox.c
+++ b/formats/format_vox.c
@@ -28,14 +28,10 @@
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
-#include <unistd.h>
#include <netinet/in.h>
#include <arpa/inet.h>
-#include <stdlib.h>
#include <sys/time.h>
-#include <stdio.h>
#include <errno.h>
-#include <string.h>
#include "asterisk/lock.h"
#include "asterisk/channel.h"
diff --git a/formats/format_wav.c b/formats/format_wav.c
index c09c7ed1f..2abddc219 100644
--- a/formats/format_wav.c
+++ b/formats/format_wav.c
@@ -28,14 +28,10 @@
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
-#include <unistd.h>
#include <netinet/in.h>
#include <arpa/inet.h>
-#include <stdlib.h>
#include <sys/time.h>
-#include <stdio.h>
#include <errno.h>
-#include <string.h>
#include "asterisk/lock.h"
#include "asterisk/channel.h"
diff --git a/formats/format_wav_gsm.c b/formats/format_wav_gsm.c
index 6916ceaf4..36a6d4b63 100644
--- a/formats/format_wav_gsm.c
+++ b/formats/format_wav_gsm.c
@@ -31,14 +31,10 @@
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
-#include <unistd.h>
#include <netinet/in.h>
#include <arpa/inet.h>
-#include <stdlib.h>
#include <sys/time.h>
-#include <stdio.h>
#include <errno.h>
-#include <string.h>
#include "asterisk/lock.h"
#include "asterisk/channel.h"