mirror of
https://github.com/libexpat/libexpat.git
synced 2025-04-05 13:14:59 +00:00
Protect expat_config.h against multiple inclusion
This commit is contained in:
parent
91920104de
commit
6393f2d3ff
5 changed files with 11 additions and 0 deletions
|
@ -1,3 +1,4 @@
|
|||
EXPAT_CONFIG_H
|
||||
BYTEORDER
|
||||
__func__
|
||||
HAVE_ARC4RANDOM
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
EXPAT_CONFIG_H
|
||||
AC_APPLE_UNIVERSAL_BUILD
|
||||
BYTEORDER
|
||||
const
|
||||
|
|
|
@ -12,6 +12,7 @@ Release x.x.x xxx xxxxxxxxxxxx xx xxxx
|
|||
XML_ParserReset and then reused to parse
|
||||
|
||||
Other changes:
|
||||
#663 Protect header expat_config.h from multiple inclusion
|
||||
#648 Address compiler warnings
|
||||
|
||||
Special thanks to:
|
||||
|
|
|
@ -86,6 +86,9 @@ LIBREVISION=9 # with
|
|||
LIBAGE=8 # CMakeLists.txt!
|
||||
|
||||
AC_CONFIG_HEADERS([expat_config.h])
|
||||
AH_TOP([#ifndef EXPAT_CONFIG_H
|
||||
#define EXPAT_CONFIG_H 1])
|
||||
AH_BOTTOM([#endif // ndef EXPAT_CONFIG_H])
|
||||
|
||||
AM_PROG_AR
|
||||
AC_PROG_INSTALL
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
/* expat_config.h.cmake. Based upon generated expat_config.h.in. */
|
||||
|
||||
#ifndef EXPAT_CONFIG_H
|
||||
#define EXPAT_CONFIG_H 1
|
||||
|
||||
/* 1234 = LIL_ENDIAN, 4321 = BIGENDIAN */
|
||||
#cmakedefine BYTEORDER @BYTEORDER@
|
||||
|
||||
|
@ -113,3 +116,5 @@
|
|||
|
||||
/* Define to `unsigned' if <sys/types.h> does not define. */
|
||||
#cmakedefine size_t @SIZE_T@
|
||||
|
||||
#endif // ndef EXPAT_CONFIG_H
|
||||
|
|
Loading…
Add table
Reference in a new issue