mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 19:28:53 +00:00
Merged revisions 48521 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r48521 | kpfleming | 2006-12-16 14:12:41 -0600 (Sat, 16 Dec 2006) | 2 lines since we really, really have to have autoconfig.h included before all other headers (especially system headers), the Makefile will now force it to happen (this will fix build problems with files like ast_expr2f.c, where we can't control the inclusion order in the file itself) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48522 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
2
Makefile
2
Makefile
@@ -181,6 +181,8 @@ endif
|
||||
|
||||
ASTCFLAGS+=-pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations $(DEBUG)
|
||||
|
||||
ASTCFLAGS+=-include $(ASTTOPDIR)/include/asterisk/autoconfig.h
|
||||
|
||||
ifeq ($(AST_DEVMODE),yes)
|
||||
ASTCFLAGS+=-Werror -Wunused
|
||||
endif
|
||||
|
@@ -18,6 +18,13 @@
|
||||
#ifndef _ASTERISK_H
|
||||
#define _ASTERISK_H
|
||||
|
||||
/* The include of 'autoconfig.h' is not necessary for any modules that
|
||||
are part of the Asterisk source tree, because the top-level Makefile
|
||||
will forcibly include that header in all compilations before all
|
||||
other headers (even system headers). However, leaving this here will
|
||||
help out-of-tree module builders, and doesn't cause any harm for the
|
||||
in-tree modules.
|
||||
*/
|
||||
#include "asterisk/autoconfig.h"
|
||||
|
||||
#include "asterisk/compat.h"
|
||||
|
@@ -43,10 +43,6 @@
|
||||
#define TZ_STRLEN_MAX 255
|
||||
/* #define DEBUG */
|
||||
|
||||
#include "asterisk.h"
|
||||
|
||||
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
|
||||
|
||||
/*LINTLIBRARY*/
|
||||
|
||||
#include <sys/types.h>
|
||||
@@ -58,10 +54,14 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
|
||||
|
||||
#include "private.h"
|
||||
#include "tzfile.h"
|
||||
|
||||
#include "asterisk.h"
|
||||
|
||||
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
|
||||
|
||||
#include "asterisk/lock.h"
|
||||
#include "asterisk/localtime.h"
|
||||
|
||||
|
||||
#ifndef lint
|
||||
#ifndef NOID
|
||||
static const char elsieid[] = "@(#)localtime.c 7.57";
|
||||
|
Reference in New Issue
Block a user