diff options
author | rizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-11-16 20:04:58 +0000 |
---|---|---|
committer | rizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-11-16 20:04:58 +0000 |
commit | 883346d64a852193fb4119d4399aa0f5a54d8ae8 (patch) | |
tree | c012d8f76915d410cf7446b1efc51e3c2e3f5e95 /main/strcompat.c | |
parent | 4948a0f37cad4e682bdd7860e0c2f01c6cb38ef7 (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 'main/strcompat.c')
-rw-r--r-- | main/strcompat.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/main/strcompat.c b/main/strcompat.c index 243ef76cb..37ee407cd 100644 --- a/main/strcompat.c +++ b/main/strcompat.c @@ -21,16 +21,7 @@ #include "asterisk.h" -#include <sys/types.h> #include <ctype.h> -#include <stdio.h> -#include <stdlib.h> -#include <string.h> -#include <stdarg.h> - -#ifdef HAVE_ALLOCA_H -#include <alloca.h> -#endif #ifndef HAVE_STRSEP char *strsep(char **str, const char *delims) |