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
#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"
#define TZ_STRLEN_MAX 255
/* #define DEBUG */
-#include "asterisk.h"
-
-ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
-
/*LINTLIBRARY*/
#include <sys/types.h>
#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";