From 6ba6e2d521359f29abba1b79792ccb5caf2034c8 Mon Sep 17 00:00:00 2001 From: pjrm Date: Wed, 12 Sep 2007 05:15:53 +0000 Subject: [PATCH] (PrintPS::begin): Change isspace to g_ascii_isspace. print.cpp, extension/internal/ps.cpp: Fix some #includes. --- src/extension/internal/ps.cpp | 29 ++++++++++++++++++++++------- src/print.cpp | 13 ++++++------- 2 files changed, 28 insertions(+), 14 deletions(-) diff --git a/src/extension/internal/ps.cpp b/src/extension/internal/ps.cpp index ac424e85e..3210f723c 100644 --- a/src/extension/internal/ps.cpp +++ b/src/extension/internal/ps.cpp @@ -34,6 +34,7 @@ #include #include +#include #include #include #include @@ -69,12 +70,26 @@ #include #include #include - -#ifdef SOLARIS_2_8 -#include -#endif - -using namespace std; +#include +#include +#include +#include +using std::atof; +using std::ceil; +using std::fclose; +using std::ferror; +using std::fflush; +using std::fgetc; +using std::fprintf; +using std::fputc; +using std::fseek; +using std::ifstream; +using std::ios; +using std::memset; +using std::strchr; +using std::strcmp; +using std::strerror; +using std::tmpfile; namespace Inkscape { namespace Extension { @@ -277,7 +292,7 @@ PrintPS::begin(Inkscape::Extension::Print *mod, SPDocument *doc) if (fn != NULL) { if (*fn == '|') { fn += 1; - while (isspace(*fn)) fn += 1; + while (g_ascii_isspace(*fn)) fn += 1; #ifndef WIN32 osp = popen(fn, "w"); #else diff --git a/src/print.cpp b/src/print.cpp index dad80d1c9..fe395851e 100644 --- a/src/print.cpp +++ b/src/print.cpp @@ -22,13 +22,12 @@ #include "print.h" #ifdef HAVE_GTK_UNIX_PRINT -#include -#include -#include -#endif - -#ifdef SOLARIS_2_8 -#include +# include +# include +# include +# include // close, unlink +# include +using std::fprintf; #endif #if 0 -- 2.30.2