summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/runfile.in
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-01-08 18:39:01 +0000
committerKarl Berry <karl@freefriends.org>2022-01-08 18:39:01 +0000
commitbedc9a5694f7c40a2645919601638d2dbef4145b (patch)
tree22548fd073b3f2f5a287c2487d69bfc656125ef6 /Build/source/utils/asymptote/runfile.in
parentc2c4540ab1d27a23c085ce5081f6366cfabb31f6 (diff)
asy 2.75 sources
git-svn-id: svn://tug.org/texlive/trunk@61532 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/asymptote/runfile.in')
-rw-r--r--Build/source/utils/asymptote/runfile.in11
1 files changed, 7 insertions, 4 deletions
diff --git a/Build/source/utils/asymptote/runfile.in b/Build/source/utils/asymptote/runfile.in
index da08d523ef1..1a6835b7b27 100644
--- a/Build/source/utils/asymptote/runfile.in
+++ b/Build/source/utils/asymptote/runfile.in
@@ -44,11 +44,14 @@ file* input(string name=emptystring, bool check=true,
string comment=commentchar, string mode=emptystring)
{
file *f=NULL;
- if(mode == "binary") {
+ if(mode == "binary")
f=new ibfile(name,check);
- } else if(mode == "xdr") {
+ else if(mode == "xdr" || mode == "xdrgz") {
#ifdef HAVE_RPC_RPC_H
- f=new ixfile(name,check);
+ if(mode == "xdr")
+ f=new ixfile(name,check);
+ else if(mode == "xdrgz")
+ f=new igzxfile(name,check);
#else
ostringstream buf;
buf << name << ": XDR read support not enabled";
@@ -56,7 +59,7 @@ file* input(string name=emptystring, bool check=true,
#endif
} else if(mode == "") {
char c=comment.empty() ? (char) 0 : comment[0];
- f=new ifile(name,c,check);
+ f=new camp::ifile(name,c,check);
} else {
f=NULL;
ostringstream buf;