schwarze pushed a commit to branch master
in repository groff.
commit fe121eeacd53c96105f23209b2c205f436f97359
Author: Ingo Schwarze <[email protected]>
AuthorDate: Thu Oct 15 15:12:20 2020 +0200
#include "config.h" before <stdio.h>
Required with e.g. GCC 4.2.1 because gnulib/lib/stdio.in.h
uses the "restrict" keyword since this gnulib commit:
commit 182afcba2635cbff91240656c7fb3742dd23ab6f
Author: Bruno Haible <[email protected]>
Date: Sat Feb 22 20:57:30 2020 +0100
Otherwise, the build may die from the declaration of
various printf-like functions with messages like:
./lib/stdio.h:851: error: expected ',' or '...' before 'fp'
fixes https://savannah.gnu.org/bugs/index.php?59276
OK cjwatson@
---
ChangeLog | 28 +++++++++++++++++++++++-----
src/libs/libgroff/assert.cpp | 4 ++++
src/libs/libgroff/errarg.cpp | 4 ++++
src/libs/libgroff/error.cpp | 4 ++++
src/preproc/eqn/eqn.ypp | 4 ++++
5 files changed, 39 insertions(+), 5 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 1ceb05a..e165f9f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,12 +1,30 @@
-2020-10-18 Bertrand Garrigues <[email protected]>
+2020-10-18 Ingo Schwarze <[email protected]>
- hpftodit: incorrect 'delete' after new[]
+ #include "config.h" before <stdio.h>
- * src/utils/hpftodit/hpftodit.cpp (output_font_name): use 'delete[]'.
+ Required with e.g. gcc 4.2.1 because gnulib/lib/stdio.in.h
+ uses the "restrict" keyword since this gnulib commit:
+ commit 182afcba2635cbff91240656c7fb3742dd23ab6f
+ Author: Bruno Haible <[email protected]>
+ Date: Sat Feb 22 20:57:30 2020 +0100
- Fixes bug #55331. Found by David Binderman, fixed by Ingo Schwarze.
+ Otherwise, the build may die from the declaration of
+ various printf-like functions with messages like:
+ ./lib/stdio.h:851: error: expected ',' or '...' before 'fp'
-2020-10-18 Bertrand Garrigues <[email protected]>
+ * src/libs/libgroff/assert.cpp, src/libs/libgroff/errarg.cpp,
+ src/libs/libgroff/error.cpp, src/preproc/eqn/eqn.ypp:
+ #include "config.h".
+
+2020-10-18 Bertrand Garrigues <[email protected]>
+
+ hpftodit: incorrect 'delete' after new[]
+
+ * src/utils/hpftodit/hpftodit.cpp (output_font_name): use 'delete[]'.
+
+ Fixes bug #55331. Found by David Binderman, fixed by Ingo Schwarze.
+
+2020-10-18 Bertrand Garrigues <[email protected]>
preconv: don't use libuchardet if input is stdin
diff --git a/src/libs/libgroff/assert.cpp b/src/libs/libgroff/assert.cpp
index 80a9946..1f6bf59 100644
--- a/src/libs/libgroff/assert.cpp
+++ b/src/libs/libgroff/assert.cpp
@@ -16,6 +16,10 @@ for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <stdio.h>
#include <stdlib.h>
#include "assert.h"
diff --git a/src/libs/libgroff/errarg.cpp b/src/libs/libgroff/errarg.cpp
index b0df24a..ec5eae1 100644
--- a/src/libs/libgroff/errarg.cpp
+++ b/src/libs/libgroff/errarg.cpp
@@ -17,6 +17,10 @@ for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <stdio.h>
#include "assert.h"
#include "errarg.h"
diff --git a/src/libs/libgroff/error.cpp b/src/libs/libgroff/error.cpp
index 14949b9..912112b 100644
--- a/src/libs/libgroff/error.cpp
+++ b/src/libs/libgroff/error.cpp
@@ -17,6 +17,10 @@ for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/src/preproc/eqn/eqn.ypp b/src/preproc/eqn/eqn.ypp
index fb318c3..6825afb 100644
--- a/src/preproc/eqn/eqn.ypp
+++ b/src/preproc/eqn/eqn.ypp
@@ -16,6 +16,10 @@ for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
%{
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
_______________________________________________
Groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit