mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 03:20:57 +00:00
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
This commit is contained in:
@@ -135,7 +135,6 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
|
||||
#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"
|
||||
|
@@ -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.
|
||||
|
@@ -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
|
||||
|
@@ -15,6 +15,8 @@
|
||||
* especially those related to header files.
|
||||
*/
|
||||
|
||||
#include "asterisk/compiler.h"
|
||||
|
||||
#ifndef _COMPAT_H
|
||||
#define _COMPAT_H
|
||||
|
||||
|
@@ -27,8 +27,6 @@
|
||||
* Autodetect system endianess
|
||||
*/
|
||||
|
||||
#include "asterisk/compat.h"
|
||||
|
||||
#ifndef __BYTE_ORDER
|
||||
#ifdef __linux__
|
||||
#include <endian.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"
|
||||
|
||||
|
@@ -103,8 +103,6 @@
|
||||
#define _ASTERISK_STRINGFIELDS_H
|
||||
|
||||
#include "asterisk/inline_api.h"
|
||||
#include "asterisk/compiler.h"
|
||||
#include "asterisk/compat.h"
|
||||
|
||||
/*!
|
||||
\internal
|
||||
|
@@ -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"
|
||||
|
||||
|
@@ -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"
|
||||
|
||||
/*!
|
||||
|
@@ -24,12 +24,8 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include "asterisk/autoconfig.h"
|
||||
#include "asterisk/compat.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
#include <time.h>
|
||||
#include <sys/stat.h>
|
||||
@@ -67,8 +63,6 @@ struct ast_channel
|
||||
|
||||
|
||||
#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"
|
||||
|
Reference in New Issue
Block a user