[svn-commits] rizzo: trunk r89336 - in /trunk: channels/ include/asterisk/ utils/

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri Nov 16 15:08:29 CST 2007


Author: rizzo
Date: Fri Nov 16 15:08:28 2007
New Revision: 89336

URL: http://svn.digium.com/view/asterisk?view=rev&rev=89336
Log:
remove redundant #include "asterisk/compat.h",
but make sure that asterisk/compiler.h is included everywhere


Modified:
    trunk/channels/chan_sip.c
    trunk/include/asterisk/astobj.h
    trunk/include/asterisk/channel.h
    trunk/include/asterisk/compat.h
    trunk/include/asterisk/endian.h
    trunk/include/asterisk/frame.h
    trunk/include/asterisk/stringfields.h
    trunk/include/asterisk/strings.h
    trunk/include/asterisk/utils.h
    trunk/utils/extconf.c

Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_sip.c?view=diff&rev=89336&r1=89335&r2=89336
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Fri Nov 16 15:08:28 2007
@@ -135,7 +135,6 @@
 #include "asterisk/netsock.h"
 #include "asterisk/localtime.h"
 #include "asterisk/abstract_jb.h"
-#include "asterisk/compiler.h"
 #include "asterisk/threadstorage.h"
 #include "asterisk/translate.h"
 #include "asterisk/version.h"

Modified: trunk/include/asterisk/astobj.h
URL: http://svn.digium.com/view/asterisk/trunk/include/asterisk/astobj.h?view=diff&rev=89336&r1=89335&r2=89336
==============================================================================
--- trunk/include/asterisk/astobj.h (original)
+++ trunk/include/asterisk/astobj.h Fri Nov 16 15:08:28 2007
@@ -24,7 +24,6 @@
 #define _ASTERISK_ASTOBJ_H
 
 #include "asterisk/lock.h"
-#include "asterisk/compiler.h"
 
 /*! \file
  * \brief A set of macros implementing objects and containers.

Modified: trunk/include/asterisk/channel.h
URL: http://svn.digium.com/view/asterisk/trunk/include/asterisk/channel.h?view=diff&rev=89336&r1=89335&r2=89336
==============================================================================
--- trunk/include/asterisk/channel.h (original)
+++ trunk/include/asterisk/channel.h Fri Nov 16 15:08:28 2007
@@ -142,7 +142,6 @@
 #define MAX_LANGUAGE		20	/*!< Max length of the language setting */
 #define MAX_MUSICCLASS		80	/*!< Max length of the music class setting */
 
-#include "asterisk/compat.h"
 #include "asterisk/frame.h"
 #include "asterisk/sched.h"
 #include "asterisk/chanvars.h"
@@ -152,7 +151,6 @@
 #include "asterisk/utils.h"
 #include "asterisk/linkedlists.h"
 #include "asterisk/stringfields.h"
-#include "asterisk/compiler.h"
 #include <limits.h>
 
 #define DATASTORE_INHERIT_FOREVER	INT_MAX

Modified: trunk/include/asterisk/compat.h
URL: http://svn.digium.com/view/asterisk/trunk/include/asterisk/compat.h?view=diff&rev=89336&r1=89335&r2=89336
==============================================================================
--- trunk/include/asterisk/compat.h (original)
+++ trunk/include/asterisk/compat.h Fri Nov 16 15:08:28 2007
@@ -14,6 +14,8 @@
  * Included by asterisk.h to handle platform-specific issues
  * especially those related to header files.
  */
+
+#include "asterisk/compiler.h"
 
 #ifndef _COMPAT_H
 #define _COMPAT_H

Modified: trunk/include/asterisk/endian.h
URL: http://svn.digium.com/view/asterisk/trunk/include/asterisk/endian.h?view=diff&rev=89336&r1=89335&r2=89336
==============================================================================
--- trunk/include/asterisk/endian.h (original)
+++ trunk/include/asterisk/endian.h Fri Nov 16 15:08:28 2007
@@ -26,8 +26,6 @@
 /*
  * Autodetect system endianess
  */
-
-#include "asterisk/compat.h"
 
 #ifndef __BYTE_ORDER
 #ifdef __linux__

Modified: trunk/include/asterisk/frame.h
URL: http://svn.digium.com/view/asterisk/trunk/include/asterisk/frame.h?view=diff&rev=89336&r1=89335&r2=89336
==============================================================================
--- trunk/include/asterisk/frame.h (original)
+++ trunk/include/asterisk/frame.h Fri Nov 16 15:08:28 2007
@@ -32,7 +32,6 @@
 #include <sys/types.h>
 #include <sys/time.h>
 
-#include "asterisk/compiler.h"
 #include "asterisk/endian.h"
 #include "asterisk/linkedlists.h"
 

Modified: trunk/include/asterisk/stringfields.h
URL: http://svn.digium.com/view/asterisk/trunk/include/asterisk/stringfields.h?view=diff&rev=89336&r1=89335&r2=89336
==============================================================================
--- trunk/include/asterisk/stringfields.h (original)
+++ trunk/include/asterisk/stringfields.h Fri Nov 16 15:08:28 2007
@@ -103,8 +103,6 @@
 #define _ASTERISK_STRINGFIELDS_H
 
 #include "asterisk/inline_api.h"
-#include "asterisk/compiler.h"
-#include "asterisk/compat.h"
 
 /*!
   \internal

Modified: trunk/include/asterisk/strings.h
URL: http://svn.digium.com/view/asterisk/trunk/include/asterisk/strings.h?view=diff&rev=89336&r1=89335&r2=89336
==============================================================================
--- trunk/include/asterisk/strings.h (original)
+++ trunk/include/asterisk/strings.h Fri Nov 16 15:08:28 2007
@@ -24,8 +24,6 @@
 #define _ASTERISK_STRINGS_H
 
 #include "asterisk/inline_api.h"
-#include "asterisk/compiler.h"
-#include "asterisk/compat.h"
 #include "asterisk/utils.h"
 #include "asterisk/threadstorage.h"
 

Modified: trunk/include/asterisk/utils.h
URL: http://svn.digium.com/view/asterisk/trunk/include/asterisk/utils.h?view=diff&rev=89336&r1=89335&r2=89336
==============================================================================
--- trunk/include/asterisk/utils.h (original)
+++ trunk/include/asterisk/utils.h Fri Nov 16 15:08:28 2007
@@ -23,8 +23,6 @@
 #ifndef _ASTERISK_UTILS_H
 #define _ASTERISK_UTILS_H
 
-#include "asterisk/compat.h"
-
 #include <netinet/in.h>
 #include <arpa/inet.h>	/* we want to override inet_ntoa */
 #include <netdb.h>
@@ -34,7 +32,6 @@
 #include "asterisk/lock.h"
 #include "asterisk/time.h"
 #include "asterisk/logger.h"
-#include "asterisk/compiler.h"
 #include "asterisk/localtime.h"
 
 /*! 

Modified: trunk/utils/extconf.c
URL: http://svn.digium.com/view/asterisk/trunk/utils/extconf.c?view=diff&rev=89336&r1=89335&r2=89336
==============================================================================
--- trunk/utils/extconf.c (original)
+++ trunk/utils/extconf.c Fri Nov 16 15:08:28 2007
@@ -24,12 +24,8 @@
  *
  */
 
-#include "asterisk/autoconfig.h"
-
-#include <stdio.h>
-#include <unistd.h>
-#include <stdlib.h>
-#include <string.h>
+#include "asterisk/compat.h"
+
 #include <errno.h>
 #include <time.h>
 #include <sys/stat.h>
@@ -67,8 +63,6 @@
 
 
 #include "asterisk/inline_api.h"
-#include "asterisk/compat.h"
-#include "asterisk/compiler.h"
 #include "asterisk/endian.h"
 #include "asterisk/ast_expr.h"
 #include "asterisk/ael_structs.h"




More information about the svn-commits mailing list