summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkira Kakuto <kakuto@fuk.kindai.ac.jp>2012-08-21 15:16:30 +0000
committerAkira Kakuto <kakuto@fuk.kindai.ac.jp>2012-08-21 15:16:30 +0000
commitdf94bd52e9a99179b2c60d455f3735084e0d0378 (patch)
treed6692e4192597e464e8905d924f67f28166fba9b
parentc3a8fb9686e80216eac324d9be41b11d5b65a8ee (diff)
support monocase filesystem
git-svn-id: svn://tug.org/texlive/trunk@27485 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Build/source/texk/dvipdfmx/src/dvipdfmx.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/Build/source/texk/dvipdfmx/src/dvipdfmx.c b/Build/source/texk/dvipdfmx/src/dvipdfmx.c
index f03581616d7..1fe0f009704 100644
--- a/Build/source/texk/dvipdfmx/src/dvipdfmx.c
+++ b/Build/source/texk/dvipdfmx/src/dvipdfmx.c
@@ -852,13 +852,13 @@ main (int argc, char *argv[])
{
const char *base = xbasename(argv[0]);
-#define STRCMP_BASE(s) strcmp(base, s) && strcasecmp(base, s ".exe")
-
- if (!(STRCMP_BASE("dvipdfm") && STRCMP_BASE("ebb")))
+ if (STRN_CMP(base, "dvipdfmx", 8) != 0 &&
+ (STRN_CMP(base, "dvipdfm",7) == 0 || STRN_CMP(base, "ebb", 3) == 0))
compat_mode = 1;
- if (!(STRCMP_BASE("extractbb") && STRCMP_BASE("xbb") &&
- STRCMP_BASE("ebb")))
+ if (STRN_CMP(base, "extractbb", 9) == 0 ||
+ STRN_CMP(base, "xbb", 3) == 0 ||
+ STRN_CMP(base, "ebb", 3) == 0)
return extractbb(argc, argv);
}