From fdb7f7ba3da0b1bb02c782eba68aa1fa4ba96800 Mon Sep 17 00:00:00 2001 From: Luigi Rizzo Date: Fri, 16 Nov 2007 20:04:58 +0000 Subject: 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: https://origsvn.digium.com/svn/asterisk/trunk@89333 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- cdr/cdr_adaptive_odbc.c | 4 ---- cdr/cdr_csv.c | 6 ------ cdr/cdr_custom.c | 6 ------ cdr/cdr_manager.c | 3 --- cdr/cdr_odbc.c | 6 ------ cdr/cdr_pgsql.c | 5 ----- cdr/cdr_radius.c | 5 ----- cdr/cdr_sqlite.c | 5 ----- cdr/cdr_sqlite3_custom.c | 5 ----- cdr/cdr_tds.c | 5 ----- 10 files changed, 50 deletions(-) (limited to 'cdr') diff --git a/cdr/cdr_adaptive_odbc.c b/cdr/cdr_adaptive_odbc.c index 129ae1682..b5b83cd02 100644 --- a/cdr/cdr_adaptive_odbc.c +++ b/cdr/cdr_adaptive_odbc.c @@ -33,10 +33,6 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") #include -#include -#include -#include -#include #include #include diff --git a/cdr/cdr_csv.c b/cdr/cdr_csv.c index 1a0fcaa30..2db2221b0 100644 --- a/cdr/cdr_csv.c +++ b/cdr/cdr_csv.c @@ -32,13 +32,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") -#include -#include -#include #include - -#include -#include #include #include "asterisk/config.h" diff --git a/cdr/cdr_custom.c b/cdr/cdr_custom.c index fe65abd8c..d84746eb5 100644 --- a/cdr/cdr_custom.c +++ b/cdr/cdr_custom.c @@ -34,13 +34,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") -#include -#include -#include #include - -#include -#include #include #include "asterisk/channel.h" diff --git a/cdr/cdr_manager.c b/cdr/cdr_manager.c index 062718039..e204337d5 100644 --- a/cdr/cdr_manager.c +++ b/cdr/cdr_manager.c @@ -29,9 +29,6 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") -#include -#include -#include #include #include "asterisk/channel.h" diff --git a/cdr/cdr_odbc.c b/cdr/cdr_odbc.c index 1223347b3..effa61512 100644 --- a/cdr/cdr_odbc.c +++ b/cdr/cdr_odbc.c @@ -37,12 +37,6 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") -#include -#include -#include - -#include -#include #include #include "asterisk/config.h" diff --git a/cdr/cdr_pgsql.c b/cdr/cdr_pgsql.c index ac43e96f8..0750a2dab 100644 --- a/cdr/cdr_pgsql.c +++ b/cdr/cdr_pgsql.c @@ -41,11 +41,6 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") -#include -#include -#include -#include -#include #include #include diff --git a/cdr/cdr_radius.c b/cdr/cdr_radius.c index 207e24762..cc7709016 100644 --- a/cdr/cdr_radius.c +++ b/cdr/cdr_radius.c @@ -34,13 +34,8 @@ ASTERISK_FILE_VERSION(__FILE__, "$Rev$") -#include -#include -#include #include -#include #include -#include #include #include "asterisk/channel.h" diff --git a/cdr/cdr_sqlite.c b/cdr/cdr_sqlite.c index 2c526a60c..b08ce164d 100644 --- a/cdr/cdr_sqlite.c +++ b/cdr/cdr_sqlite.c @@ -42,11 +42,6 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") -#include -#include -#include -#include -#include #include #include "asterisk/channel.h" diff --git a/cdr/cdr_sqlite3_custom.c b/cdr/cdr_sqlite3_custom.c index a3ca00a4e..8f87620ed 100644 --- a/cdr/cdr_sqlite3_custom.c +++ b/cdr/cdr_sqlite3_custom.c @@ -40,13 +40,8 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") -#include -#include -#include #include -#include #include -#include #include #include "asterisk/channel.h" diff --git a/cdr/cdr_tds.c b/cdr/cdr_tds.c index 4acd5359e..64faef59c 100644 --- a/cdr/cdr_tds.c +++ b/cdr/cdr_tds.c @@ -63,11 +63,6 @@ CREATE TABLE [dbo].[cdr] ( ASTERISK_FILE_VERSION(__FILE__, "$Revision$") -#include -#include -#include -#include -#include #include #include -- cgit v1.2.3