mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-19 16:20:37 +00:00
Merge "Build System: Support include-what-you-use."
This commit is contained in:
10
configure
vendored
10
configure
vendored
@@ -13653,7 +13653,7 @@ else
|
|||||||
We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
||||||
since some C++ compilers masquerading as C compilers
|
since some C++ compilers masquerading as C compilers
|
||||||
incorrectly reject 9223372036854775807. */
|
incorrectly reject 9223372036854775807. */
|
||||||
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
|
||||||
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
||||||
&& LARGE_OFF_T % 2147483647 == 1)
|
&& LARGE_OFF_T % 2147483647 == 1)
|
||||||
? 1 : -1];
|
? 1 : -1];
|
||||||
@@ -13699,7 +13699,7 @@ else
|
|||||||
We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
||||||
since some C++ compilers masquerading as C compilers
|
since some C++ compilers masquerading as C compilers
|
||||||
incorrectly reject 9223372036854775807. */
|
incorrectly reject 9223372036854775807. */
|
||||||
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
|
||||||
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
||||||
&& LARGE_OFF_T % 2147483647 == 1)
|
&& LARGE_OFF_T % 2147483647 == 1)
|
||||||
? 1 : -1];
|
? 1 : -1];
|
||||||
@@ -13723,7 +13723,7 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|||||||
We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
||||||
since some C++ compilers masquerading as C compilers
|
since some C++ compilers masquerading as C compilers
|
||||||
incorrectly reject 9223372036854775807. */
|
incorrectly reject 9223372036854775807. */
|
||||||
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
|
||||||
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
||||||
&& LARGE_OFF_T % 2147483647 == 1)
|
&& LARGE_OFF_T % 2147483647 == 1)
|
||||||
? 1 : -1];
|
? 1 : -1];
|
||||||
@@ -13768,7 +13768,7 @@ else
|
|||||||
We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
||||||
since some C++ compilers masquerading as C compilers
|
since some C++ compilers masquerading as C compilers
|
||||||
incorrectly reject 9223372036854775807. */
|
incorrectly reject 9223372036854775807. */
|
||||||
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
|
||||||
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
||||||
&& LARGE_OFF_T % 2147483647 == 1)
|
&& LARGE_OFF_T % 2147483647 == 1)
|
||||||
? 1 : -1];
|
? 1 : -1];
|
||||||
@@ -13792,7 +13792,7 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|||||||
We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
||||||
since some C++ compilers masquerading as C compilers
|
since some C++ compilers masquerading as C compilers
|
||||||
incorrectly reject 9223372036854775807. */
|
incorrectly reject 9223372036854775807. */
|
||||||
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
|
||||||
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
||||||
&& LARGE_OFF_T % 2147483647 == 1)
|
&& LARGE_OFF_T % 2147483647 == 1)
|
||||||
? 1 : -1];
|
? 1 : -1];
|
||||||
|
|||||||
12
configure.ac
12
configure.ac
@@ -218,17 +218,13 @@ if test ! x"${UNAME}" = xNo; then
|
|||||||
fi
|
fi
|
||||||
AC_SUBST(PBX_OSREV)
|
AC_SUBST(PBX_OSREV)
|
||||||
|
|
||||||
AH_TOP(
|
AH_TOP([#ifndef ASTERISK_AUTOCONFIG_H
|
||||||
#ifndef ASTERISK_AUTOCONFIG_H
|
|
||||||
#define ASTERISK_AUTOCONFIG_H
|
#define ASTERISK_AUTOCONFIG_H
|
||||||
|
/* IWYU pragma: private, include "asterisk.h" */
|
||||||
|
|
||||||
#include "asterisk/buildopts.h"
|
#include "asterisk/buildopts.h" /* IWYU pragma: export */])
|
||||||
|
|
||||||
)
|
AH_BOTTOM([#endif /* ASTERISK_AUTOCONFIG_H */])
|
||||||
|
|
||||||
AH_BOTTOM(
|
|
||||||
#endif
|
|
||||||
)
|
|
||||||
|
|
||||||
# cross-compile checks
|
# cross-compile checks
|
||||||
if test "${cross_compiling}" = "yes";
|
if test "${cross_compiling}" = "yes";
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ extern "C" {
|
|||||||
|
|
||||||
#ifndef _ASTERISK_ASTMM_H
|
#ifndef _ASTERISK_ASTMM_H
|
||||||
#define _ASTERISK_ASTMM_H
|
#define _ASTERISK_ASTMM_H
|
||||||
|
/* IWYU pragma: private, include "asterisk/utils.h" */
|
||||||
|
|
||||||
#ifndef STANDALONE
|
#ifndef STANDALONE
|
||||||
|
|
||||||
|
|||||||
@@ -2,10 +2,9 @@
|
|||||||
|
|
||||||
#ifndef ASTERISK_AUTOCONFIG_H
|
#ifndef ASTERISK_AUTOCONFIG_H
|
||||||
#define ASTERISK_AUTOCONFIG_H
|
#define ASTERISK_AUTOCONFIG_H
|
||||||
|
/* IWYU pragma: private, include "asterisk.h" */
|
||||||
|
|
||||||
#include "asterisk/buildopts.h"
|
#include "asterisk/buildopts.h" /* IWYU pragma: export */
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Define to 1 if internal poll should be used. */
|
/* Define to 1 if internal poll should be used. */
|
||||||
#undef AST_POLL_COMPAT
|
#undef AST_POLL_COMPAT
|
||||||
@@ -1381,4 +1380,4 @@
|
|||||||
code using `volatile' can become incorrect without. Disable with care. */
|
code using `volatile' can become incorrect without. Disable with care. */
|
||||||
#undef volatile
|
#undef volatile
|
||||||
|
|
||||||
#endif
|
#endif /* ASTERISK_AUTOCONFIG_H */
|
||||||
|
|||||||
@@ -15,10 +15,12 @@
|
|||||||
* especially those related to header files.
|
* especially those related to header files.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "asterisk/compiler.h"
|
|
||||||
|
|
||||||
#ifndef _COMPAT_H
|
#ifndef _COMPAT_H
|
||||||
#define _COMPAT_H
|
#define _COMPAT_H
|
||||||
|
/* IWYU pragma: private, include "asterisk.h" */
|
||||||
|
/* IWYU pragma: begin_exports */
|
||||||
|
|
||||||
|
#include "asterisk/compiler.h"
|
||||||
|
|
||||||
#ifndef __STDC_VERSION__
|
#ifndef __STDC_VERSION__
|
||||||
/* flex output wants to find this defined. */
|
/* flex output wants to find this defined. */
|
||||||
@@ -231,5 +233,5 @@ float roundf(float x);
|
|||||||
#ifndef NAN
|
#ifndef NAN
|
||||||
#define NAN (0.0/0.0)
|
#define NAN (0.0/0.0)
|
||||||
#endif
|
#endif
|
||||||
|
/* IWYU pragma: end_exports */
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user