summaryrefslogtreecommitdiff
path: root/gmp-impl.h
diff options
context:
space:
mode:
authorKevin Ryde <user42@zip.com.au>2001-11-17 21:56:32 +0100
committerKevin Ryde <user42@zip.com.au>2001-11-17 21:56:32 +0100
commit37c483f6190d5ba50dcba81a6c3aa48228b19aa3 (patch)
tree24ac9fd216e03ba3147145946ece3dfdc1b375c7 /gmp-impl.h
parent9a0b230527ab3bcfb2fbd390d917744877012861 (diff)
downloadgmp-37c483f6190d5ba50dcba81a6c3aa48228b19aa3.tar.gz
* gmp-impl.h: Move C++ <string> to top of file to avoid the memset
redefine upsetting configure tests. Remove <iostream> since <iosfwd> in gmp.h suffices. The memset problem doesn't arise in normal circumstances, only when trying something silly like CC=g++, but it does seem better to avoid any problems if gmp-impl.h is ever used in C++ configure tests.
Diffstat (limited to 'gmp-impl.h')
-rw-r--r--gmp-impl.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/gmp-impl.h b/gmp-impl.h
index 2636bd5cd..ee5d05d20 100644
--- a/gmp-impl.h
+++ b/gmp-impl.h
@@ -39,7 +39,9 @@ MA 02111-1307, USA. */
#include "gmp-mparam.h"
#endif
-/* #include "longlong.h" */
+#ifdef __cplusplus
+#include <string>
+#endif
/* The following tries to get a good version of alloca. The tests are
@@ -2477,8 +2479,6 @@ class gmp_allocated_string {
~gmp_allocated_string() { (*__gmp_free_func) (str, strlen(str)+1); }
};
-#include <iostream>
-#include <string>
int __gmp_istream_set_base (std::istream &, char &, bool &, bool &);
void __gmp_istream_set_digits (std::string &, std::istream &, char &, bool &, int);
void __gmp_doprnt_params_from_ios (struct doprnt_params_t *p, std::ios &o);