From 891c8029d9962eb275e7e01e3e83ff7b9a340164 Mon Sep 17 00:00:00 2001 From: Peter Breitenlohner Date: Sat, 9 May 2015 13:53:07 +0000 Subject: libs/xpdf: On Windows use USERPROFILE instead of HOME git-svn-id: svn://tug.org/texlive/trunk@37293 c570f23f-e606-0410-a88d-b1316a301751 --- .../libs/xpdf/xpdf-3.04-PATCHES/patch-41-W32TeX | 24 ++++------------------ Build/source/libs/xpdf/xpdf-3.04/goo/gfile.cc | 11 +--------- 2 files changed, 5 insertions(+), 30 deletions(-) (limited to 'Build') 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 diff --git a/Build/source/libs/xpdf/xpdf-3.04/goo/gfile.cc b/Build/source/libs/xpdf/xpdf-3.04/goo/gfile.cc index 763fa870884..777870df71b 100644 --- a/Build/source/libs/xpdf/xpdf-3.04/goo/gfile.cc +++ b/Build/source/libs/xpdf/xpdf-3.04/goo/gfile.cc @@ -44,11 +44,6 @@ #endif //------------------------------------------------------------------------ -#ifdef _MSC_VER -extern "C" { -char *kpse_var_value (char *); -} -#endif GString *getHomeDir() { #ifdef VMS @@ -60,12 +55,8 @@ GString *getHomeDir() { 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 -- cgit v1.2.3