[Gmp-commit] /var/hg/gmp: Include <stdarg.h> instead of <cstdarg>, there is l...

mercurial at gmplib.org mercurial at gmplib.org
Sun Feb 17 10:53:22 CET 2013


details:   /var/hg/gmp/rev/bf312e548a3a
changeset: 15449:bf312e548a3a
user:      Marc Glisse <marc.glisse at inria.fr>
date:      Sun Feb 17 10:53:15 2013 +0100
description:
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>.

diffstat:

 ChangeLog        |  5 +++++
 cxx/osdoprnti.cc |  4 ++--
 2 files changed, 7 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 4dce900d1b22 -r bf312e548a3a ChangeLog
--- a/ChangeLog	Sat Feb 16 20:29:27 2013 +0100
+++ b/ChangeLog	Sun Feb 17 10:53:15 2013 +0100
@@ -1,3 +1,8 @@
+2013-02-17  Marc Glisse  <marc.glisse at 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 at inria.fr>
 
 	* gmpxx.h: Include <algorithm>.
diff -r 4dce900d1b22 -r bf312e548a3a cxx/osdoprnti.cc
--- a/cxx/osdoprnti.cc	Sat Feb 16 20:29:27 2013 +0100
+++ b/cxx/osdoprnti.cc	Sun Feb 17 10:53:15 2013 +0100
@@ -22,8 +22,8 @@
 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"


More information about the gmp-commit mailing list