bison-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] examples: #include <cstring> in calc++.


From: Adam Sampson
Subject: [PATCH] examples: #include <cstring> in calc++.
Date: Wed, 31 Oct 2018 14:01:31 +0000

strerror is defined by <string.h>, and recent versions of GNU libstdc++
no longer include this automatically from <string>.
---
 doc/bison.texi | 1 +
 1 file changed, 1 insertion(+)

diff --git a/doc/bison.texi b/doc/bison.texi
index 683308cf..6effd716 100644
--- a/doc/bison.texi
+++ b/doc/bison.texi
@@ -11810,6 +11810,7 @@ then the parser's to get the set of defined tokens.
 # include <cerrno>
 # include <climits>
 # include <cstdlib>
+# include <cstring>
 # include <string>
 # include "driver.hh"
 # include "parser.hh"
-- 
2.19.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]