examples: beware of intl portability issues

Reported by Horst von Brand.
https://lists.gnu.org/r/bug-bison/2020-04/msg00033.html

* examples/c/bistromathic/Makefile: libintl might not be needed, but
libm probably is.
* examples/c/bistromathic/parse.y: Include locale.h.
This commit is contained in:
Akim Demaille
2020-05-03 10:29:17 +02:00
parent 26aef31552
commit c9b5b68c73
2 changed files with 3 additions and 2 deletions

View File

@@ -2,6 +2,7 @@
%code top {
#include <ctype.h> // isdigit
#include <locale.h> // LC_ALL
#include <math.h> // cos, sin, etc.
#include <stdarg.h> // va_start
#include <stdio.h> // printf