summaryrefslogtreecommitdiff
path: root/Build/source/libs/xpdf/TLPATCHES/patch-40-W32TeX
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/libs/xpdf/TLPATCHES/patch-40-W32TeX')
-rw-r--r--Build/source/libs/xpdf/TLPATCHES/patch-40-W32TeX29
1 files changed, 29 insertions, 0 deletions
diff --git a/Build/source/libs/xpdf/TLPATCHES/patch-40-W32TeX b/Build/source/libs/xpdf/TLPATCHES/patch-40-W32TeX
new file mode 100644
index 00000000000..53a431f334a
--- /dev/null
+++ b/Build/source/libs/xpdf/TLPATCHES/patch-40-W32TeX
@@ -0,0 +1,29 @@
+ WIN32TeX uses MSVC 5.0 with the kpathsea headers and library.
+
+diff -ur -N xpdf-3.04.orig/xpdf/GlobalParams.cc xpdf-3.04/xpdf/GlobalParams.cc
+--- xpdf-3.04.orig/xpdf/GlobalParams.cc 2014-05-30 19:47:44.000000000 +0200
++++ xpdf-3.04/xpdf/GlobalParams.cc 2014-05-30 19:52:04.000000000 +0200
+@@ -52,6 +52,8 @@
+ #include "GlobalParams.h"
+
+ #ifdef _WIN32
++# undef strcasecmp
++# undef strncasecmp
+ # define strcasecmp stricmp
+ # define strncasecmp strnicmp
+ #else
+diff -ur -N xpdf-3.04.orig/xpdf/config.h xpdf-3.04/xpdf/config.h
+--- xpdf-3.04.orig/xpdf/config.h 2014-05-28 20:50:50.000000000 +0200
++++ xpdf-3.04/xpdf/config.h 2014-05-30 19:52:04.000000000 +0200
+@@ -78,11 +78,6 @@
+ // popen
+ //------------------------------------------------------------------------
+
+-#if defined(_MSC_VER) || defined(__BORLANDC__)
+-#define popen _popen
+-#define pclose _pclose
+-#endif
+-
+ #if defined(VMS) || defined(VMCMS) || defined(DOS) || defined(OS2) || defined(__EMX__) || defined(_WIN32) || defined(__DJGPP__) || defined(MACOS)
+ #define POPEN_READ_MODE "rb"
+ #else