Skip to content
Snippets Groups Projects
  • Luigi Rizzo's avatar
    fdb7f7ba
    Start untangling header inclusion in a way that does not affect · fdb7f7ba
    Luigi Rizzo authored
    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
    fdb7f7ba
    History
    Start untangling header inclusion in a way that does not affect
    Luigi Rizzo authored
    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