summaryrefslogtreecommitdiffstats
path: root/src/extension/internal/ps.cpp
diff options
context:
space:
mode:
authorPeter Moulder <peter.moulder@monash.edu>2007-09-12 05:15:53 +0000
committerpjrm <pjrm@users.sourceforge.net>2007-09-12 05:15:53 +0000
commitd14db7c6e6185a3b0819d35f6fe2b9c5c4958e58 (patch)
tree089dacd2d27c08301381ca942de5a533c59a9dde /src/extension/internal/ps.cpp
parentPreserve current zoom and view for reverted documents (diff)
downloadinkscape-d14db7c6e6185a3b0819d35f6fe2b9c5c4958e58.tar.gz
inkscape-d14db7c6e6185a3b0819d35f6fe2b9c5c4958e58.zip
(PrintPS::begin): Change isspace to g_ascii_isspace.
print.cpp, extension/internal/ps.cpp: Fix some #includes. (bzr r3725)
Diffstat (limited to 'src/extension/internal/ps.cpp')
-rw-r--r--src/extension/internal/ps.cpp29
1 files changed, 22 insertions, 7 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 <libnr/n-art-bpath.h>
#include <glib/gmem.h>
+#include <glib/gstrfuncs.h>
#include <gtk/gtkstock.h>
#include <gtk/gtkvbox.h>
#include <gtk/gtkframe.h>
@@ -69,12 +70,26 @@
#include <string>
#include <iostream>
#include <fstream>
-
-#ifdef SOLARIS_2_8
-#include <unistd.h>
-#endif
-
-using namespace std;
+#include <cstring>
+#include <cstdio>
+#include <cstdlib>
+#include <cmath>
+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