Fix compilation on MacOS X
Patch by Shachar Itzhaky. * spot/parseaut/scanaut.ll, spot/parsetl/scantl.ll: Include libc-config.h instead of config.h. * NEWS: Mention the fix. * THANKS: Add Shachar.
This commit is contained in:
parent
78d7224026
commit
f14b0bb4bd
4 changed files with 21 additions and 10 deletions
4
NEWS
4
NEWS
|
|
@ -7,6 +7,10 @@ New in spot 2.10.5.dev (not yet released)
|
||||||
print_hoa() will now use state numbers matching those of the
|
print_hoa() will now use state numbers matching those of the
|
||||||
kripke_graph (issue #505).
|
kripke_graph (issue #505).
|
||||||
|
|
||||||
|
Bug fixed:
|
||||||
|
|
||||||
|
- Fix compilation error on MacOS X.
|
||||||
|
|
||||||
New in spot 2.10.5 (2022-05-03)
|
New in spot 2.10.5 (2022-05-03)
|
||||||
|
|
||||||
Bugs fixed:
|
Bugs fixed:
|
||||||
|
|
|
||||||
5
THANKS
5
THANKS
|
|
@ -46,10 +46,11 @@ Paul Guénézan
|
||||||
Reuben Rowe
|
Reuben Rowe
|
||||||
Roei Nahum
|
Roei Nahum
|
||||||
Rüdiger Ehlers
|
Rüdiger Ehlers
|
||||||
Silien Hong
|
Shachar Itzhaky
|
||||||
Simon Jantsch
|
|
||||||
Shengping Shaw
|
Shengping Shaw
|
||||||
Shufang Zhu
|
Shufang Zhu
|
||||||
|
Silien Hong
|
||||||
|
Simon Jantsch
|
||||||
Sonali Dutta
|
Sonali Dutta
|
||||||
Tereza Šťastná
|
Tereza Šťastná
|
||||||
Tobias Meggendorfer.
|
Tobias Meggendorfer.
|
||||||
|
|
|
||||||
|
|
@ -25,12 +25,15 @@
|
||||||
|
|
||||||
/* %option debug */
|
/* %option debug */
|
||||||
%top{
|
%top{
|
||||||
#include "config.h"
|
#include "libc-config.h"
|
||||||
/* Flex 2.6.4's test for <inttypes.h> relies on __STDC_VERSION__
|
/* Flex 2.6.4's test for <inttypes.h> relies on __STDC_VERSION__
|
||||||
which is undefined in C++. So without that, it will define
|
which is undefined in C++. So without that, it will define
|
||||||
its own integer types, including a broken SIZE_MAX definition.
|
its own integer types, including a broken SIZE_MAX definition that
|
||||||
So let's define __STDC_VERSION__ to make sure <inttypes.h> gets
|
breaks compilation on OpenBSD. So let's define __STDC_VERSION__ to
|
||||||
included. */
|
make sure <inttypes.h> gets included. Redefining __STDC_VERSION__
|
||||||
|
this way can break all sort of macros defined in <cdefs.h>, so
|
||||||
|
we include "libc-config.h" instead of "config.h" above to define
|
||||||
|
those macros first. */
|
||||||
#if HAVE_INTTYPES_H && !(defined __STDC_VERSION__)
|
#if HAVE_INTTYPES_H && !(defined __STDC_VERSION__)
|
||||||
# define __STDC_VERSION__ 199901L
|
# define __STDC_VERSION__ 199901L
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -27,12 +27,15 @@
|
||||||
%option never-interactive
|
%option never-interactive
|
||||||
|
|
||||||
%top{
|
%top{
|
||||||
#include "config.h"
|
#include "libc-config.h"
|
||||||
/* Flex 2.6.4's test for <inttypes.h> relies on __STDC_VERSION__
|
/* Flex 2.6.4's test for <inttypes.h> relies on __STDC_VERSION__
|
||||||
which is undefined in C++. So without that, it will define
|
which is undefined in C++. So without that, it will define
|
||||||
its own integer types, including a broken SIZE_MAX definition.
|
its own integer types, including a broken SIZE_MAX definition that
|
||||||
So let's define __STDC_VERSION__ to make sure <inttypes.h> gets
|
breaks compilation on OpenBSD. So let's define __STDC_VERSION__ to
|
||||||
included. */
|
make sure <inttypes.h> gets included. Redefining __STDC_VERSION__
|
||||||
|
this way can break all sort of macros defined in <cdefs.h>, so
|
||||||
|
we include "libc-config.h" instead of "config.h" above to define
|
||||||
|
those macros first. */
|
||||||
#if HAVE_INTTYPES_H && !(defined __STDC_VERSION__)
|
#if HAVE_INTTYPES_H && !(defined __STDC_VERSION__)
|
||||||
# define __STDC_VERSION__ 199901L
|
# define __STDC_VERSION__ 199901L
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue