summaryrefslogtreecommitdiff
path: root/graphics/asymptote/psfile.cc
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2024-11-13 03:03:42 +0000
committerNorbert Preining <norbert@preining.info>2024-11-13 03:03:42 +0000
commit5037cc8f66c1c2dfc56accf0f29866977fce1f11 (patch)
tree916c5b917a84c268d98a6176a93f0a4c3e63a102 /graphics/asymptote/psfile.cc
parentd63a87aba38d505e5b1322a0fd3b93549e7cb203 (diff)
CTAN sync 202411130303
Diffstat (limited to 'graphics/asymptote/psfile.cc')
-rw-r--r--graphics/asymptote/psfile.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/graphics/asymptote/psfile.cc b/graphics/asymptote/psfile.cc
index 60152e8d18..fe7208f62a 100644
--- a/graphics/asymptote/psfile.cc
+++ b/graphics/asymptote/psfile.cc
@@ -122,7 +122,9 @@ void psfile::close()
if(out) {
out->flush();
if(!filename.empty()) {
-#ifdef __MSDOS__
+#if defined(_MSC_VER)
+
+#else
chmod(filename.c_str(),~settings::mask & 0777);
#endif
if(!out->good())
@@ -152,7 +154,7 @@ void psfile::prologue(const bbox& box)
{
header(true);
BoundingBox(box);
- *out << "%%Creator: " << settings::PROGRAM << " " << settings::VERSION
+ *out << "%%Creator: " << PACKAGE_NAME << " " << PACKAGE_VERSION
<< REVISION << newl;
time_t t; time(&t);