summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Glisse <marc.glisse@inria.fr>2013-02-17 10:53:15 +0100
committerMarc Glisse <marc.glisse@inria.fr>2013-02-17 10:53:15 +0100
commit37544d3499ff88bebe279ea9dabb670c5958b14c (patch)
treee8ec3678a10112db146008b9f027d0a72f2b3ab9
parentb4016c107413821f2caf5ced71015a041f6cfe89 (diff)
downloadgmp-37544d3499ff88bebe279ea9dabb670c5958b14c.tar.gz
Include <stdarg.h> instead of <cstdarg>, there is little point since we do "using namespace std;" afterwards. An alternative would have been to move this using namespace before the inclusion of <gmp.h>.
-rw-r--r--ChangeLog5
-rw-r--r--cxx/osdoprnti.cc4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index fc837812a..ca29daa79 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-02-17 Marc Glisse <marc.glisse@inria.fr>
+
+ * cxx/osdoprnti.cc: Use <stdarg.h> and <string.h> rather than <cstdarg>
+ and <cstring> (revert 2002-12-21).
+
2013-02-16 Marc Glisse <marc.glisse@inria.fr>
* gmpxx.h: Include <algorithm>.
diff --git a/cxx/osdoprnti.cc b/cxx/osdoprnti.cc
index e5dea4e36..7034bfbc6 100644
--- a/cxx/osdoprnti.cc
+++ b/cxx/osdoprnti.cc
@@ -22,8 +22,8 @@ You should have received a copy of the GNU Lesser General Public License
along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */
#include <iostream>
-#include <cstdarg> /* for va_list and hence doprnt_funs_t */
-#include <cstring> /* for strlen */
+#include <stdarg.h> /* for va_list and hence doprnt_funs_t */
+#include <string.h> /* for strlen */
#include "gmp.h"
#include "gmp-impl.h"