summaryrefslogtreecommitdiff
path: root/graphics/asymptote/runfile.in
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2021-12-28 03:01:00 +0000
committerNorbert Preining <norbert@preining.info>2021-12-28 03:01:00 +0000
commitecdf859b6ce481abfd530425dcf6f0f764bd0001 (patch)
tree13bc161dc046876ac6c92fce5f9f5034ba9aa573 /graphics/asymptote/runfile.in
parent790995b7e79697514364450bf9c04f1b8d500838 (diff)
CTAN sync 202112280300
Diffstat (limited to 'graphics/asymptote/runfile.in')
-rw-r--r--graphics/asymptote/runfile.in11
1 files changed, 7 insertions, 4 deletions
diff --git a/graphics/asymptote/runfile.in b/graphics/asymptote/runfile.in
index da08d523ef..1a6835b7b2 100644
--- a/graphics/asymptote/runfile.in
+++ b/graphics/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;