summaryrefslogtreecommitdiff
path: root/Build/source/libs/xpdf/xpdf-3.04-PATCHES/patch-41-W32TeX
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/libs/xpdf/xpdf-3.04-PATCHES/patch-41-W32TeX')
-rw-r--r--Build/source/libs/xpdf/xpdf-3.04-PATCHES/patch-41-W32TeX24
1 files changed, 4 insertions, 20 deletions
diff --git a/Build/source/libs/xpdf/xpdf-3.04-PATCHES/patch-41-W32TeX b/Build/source/libs/xpdf/xpdf-3.04-PATCHES/patch-41-W32TeX
index 215703697ff..28efb4219f3 100644
--- a/Build/source/libs/xpdf/xpdf-3.04-PATCHES/patch-41-W32TeX
+++ b/Build/source/libs/xpdf/xpdf-3.04-PATCHES/patch-41-W32TeX
@@ -1,35 +1,19 @@
diff -ur -N xpdf-3.04.orig/goo/gfile.cc xpdf-3.04/goo/gfile.cc
--- xpdf-3.04.orig/goo/gfile.cc 2014-05-30 19:42:41.000000000 +0200
-+++ xpdf-3.04/goo/gfile.cc 2015-05-09 15:26:58.000000000 +0200
-@@ -44,6 +44,11 @@
- #endif
-
- //------------------------------------------------------------------------
-+#ifdef _MSC_VER
-+extern "C" {
-+char *kpse_var_value (char *);
-+}
-+#endif
-
- GString *getHomeDir() {
- #ifdef VMS
-@@ -55,7 +60,15 @@
++++ xpdf-3.04/goo/gfile.cc 2015-05-09 15:49:36.000000000 +0200
+@@ -55,7 +55,11 @@
char *s;
GString *ret;
-+#ifdef_WIN32
-+#ifdef _MSC_VER
-+ if ((s = kpse_var_value("USERPROFILE")))
-+#else
++#ifdef _WIN32
+ if ((s = getenv("USERPROFILE")))
-+#endif
+#else
if ((s = getenv("HOME")))
+#endif
ret = new GString(s);
else
ret = new GString(".");
-@@ -559,7 +572,7 @@
+@@ -559,7 +563,7 @@
GBool createDir(char *path, int mode) {
#ifdef _WIN32