summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLuigi Rizzo <rizzo@icir.org>2007-11-16 21:08:28 +0000
committerLuigi Rizzo <rizzo@icir.org>2007-11-16 21:08:28 +0000
commit4afe3b5ba9f11d5390eb20cc75665444fb1fbda3 (patch)
treec73bbb475fa290d355d9a7c9ad7c49488b85727c /include
parent04497db215698eaef1add4d8d3c69f7fae488665 (diff)
remove redundant #include "asterisk/compat.h",
but make sure that asterisk/compiler.h is included everywhere git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89336 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include')
-rw-r--r--include/asterisk/astobj.h1
-rw-r--r--include/asterisk/channel.h2
-rw-r--r--include/asterisk/compat.h2
-rw-r--r--include/asterisk/endian.h2
-rw-r--r--include/asterisk/frame.h1
-rw-r--r--include/asterisk/stringfields.h2
-rw-r--r--include/asterisk/strings.h2
-rw-r--r--include/asterisk/utils.h3
8 files changed, 2 insertions, 13 deletions
diff --git a/include/asterisk/astobj.h b/include/asterisk/astobj.h
index 1d257ed7a..cca463f42 100644
--- a/include/asterisk/astobj.h
+++ b/include/asterisk/astobj.h
@@ -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.
diff --git a/include/asterisk/channel.h b/include/asterisk/channel.h
index 327096d55..b950883d5 100644
--- a/include/asterisk/channel.h
+++ b/include/asterisk/channel.h
@@ -142,7 +142,6 @@ extern "C" {
#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 @@ extern "C" {
#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
diff --git a/include/asterisk/compat.h b/include/asterisk/compat.h
index 7e019e064..f70dcea16 100644
--- a/include/asterisk/compat.h
+++ b/include/asterisk/compat.h
@@ -15,6 +15,8 @@
* especially those related to header files.
*/
+#include "asterisk/compiler.h"
+
#ifndef _COMPAT_H
#define _COMPAT_H
diff --git a/include/asterisk/endian.h b/include/asterisk/endian.h
index 98bff15a2..2d8e9d4f3 100644
--- a/include/asterisk/endian.h
+++ b/include/asterisk/endian.h
@@ -27,8 +27,6 @@
* Autodetect system endianess
*/
-#include "asterisk/compat.h"
-
#ifndef __BYTE_ORDER
#ifdef __linux__
#include <endian.h>
diff --git a/include/asterisk/frame.h b/include/asterisk/frame.h
index e51f6e638..07072d135 100644
--- a/include/asterisk/frame.h
+++ b/include/asterisk/frame.h
@@ -32,7 +32,6 @@ extern "C" {
#include <sys/types.h>
#include <sys/time.h>
-#include "asterisk/compiler.h"
#include "asterisk/endian.h"
#include "asterisk/linkedlists.h"
diff --git a/include/asterisk/stringfields.h b/include/asterisk/stringfields.h
index 214935ac0..65f1b53f9 100644
--- a/include/asterisk/stringfields.h
+++ b/include/asterisk/stringfields.h
@@ -103,8 +103,6 @@
#define _ASTERISK_STRINGFIELDS_H
#include "asterisk/inline_api.h"
-#include "asterisk/compiler.h"
-#include "asterisk/compat.h"
/*!
\internal
diff --git a/include/asterisk/strings.h b/include/asterisk/strings.h
index 2efe02c2a..dc5f8e18a 100644
--- a/include/asterisk/strings.h
+++ b/include/asterisk/strings.h
@@ -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"
diff --git a/include/asterisk/utils.h b/include/asterisk/utils.h
index 7d0b56089..c1b61ba2b 100644
--- a/include/asterisk/utils.h
+++ b/include/asterisk/utils.h
@@ -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"
/*!