]> www.ginac.de Git - cln.git/blobdiff - src/real/input/cl_R_read.cc
* Change all C include headers to ISO style within C++ code.
[cln.git] / src / real / input / cl_R_read.cc
index 9cd38848938b2cb3ba048c5604bced85eaa4c257..0538f48797c9b62e1722344d0e704926ee0a9fd2 100644 (file)
@@ -11,7 +11,7 @@
 
 // Implementation.
 
-#include <string.h>
+#include <cstring>
 #include "cln/input.h"
 #include "cln/rational_io.h"
 #include "cln/integer_io.h"
 #undef floor
 #include <cmath>
 #define floor cln_floor
-// Ugh, some compilers #define stderr, confusing cln::stderr
-#ifdef stderr
-  #undef stderr
-#endif
 
 
 namespace cln {
@@ -94,9 +90,9 @@ const cl_R read_real (const cl_read_flags& flags, const char * string, const cha
                                                goto not_rational_syntax;
                                        var cl_I base = read_integer(10,0,ptr,0,base_end_ptr-ptr);
                                        if (!((base >= 2) && (base <= 36))) {
-                                               fprint(stderr, "Base must be an integer in the range from 2 to 36, not ");
-                                               fprint(stderr, base);
-                                               fprint(stderr, "\n");
+                                               fprint(std::cerr, "Base must be an integer in the range from 2 to 36, not ");
+                                               fprint(std::cerr, base);
+                                               fprint(std::cerr, "\n");
                                                cl_abort();
                                        }
                                        rational_base = FN_to_UL(base); ptr = base_end_ptr;