summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Build/source/texk/detex/TLpatches/ChangeLog4
-rw-r--r--Build/source/texk/detex/TLpatches/patch-02-win3216
-rw-r--r--Build/source/texk/detex/detex-src/detex.h5
3 files changed, 25 insertions, 0 deletions
diff --git a/Build/source/texk/detex/TLpatches/ChangeLog b/Build/source/texk/detex/TLpatches/ChangeLog
index 4c36050c33a..c102b178207 100644
--- a/Build/source/texk/detex/TLpatches/ChangeLog
+++ b/Build/source/texk/detex/TLpatches/ChangeLog
@@ -1,3 +1,7 @@
+2020-12-03 Akira Kakuto <kakuto@w32tex.org>
+
+ Add patch-02-win32 to support Windows.
+
2020-12-03 Hironobu Yamashita <h.y.acetaminophen@gmail.com>
Remove patch-01-support-old-compiler, which is applied in the upstream.
diff --git a/Build/source/texk/detex/TLpatches/patch-02-win32 b/Build/source/texk/detex/TLpatches/patch-02-win32
new file mode 100644
index 00000000000..b0611b759a7
--- /dev/null
+++ b/Build/source/texk/detex/TLpatches/patch-02-win32
@@ -0,0 +1,16 @@
+--- detex.h.orig Wed Jun 17 07:27:32 2020
++++ detex.h Thu Dec 03 22:39:45 2020
+@@ -56,8 +56,13 @@
+ #define DEFAULTINPUTS ".;/emtex/texinput"
+ #define CHPATHSEP ';'
+ #else
++#ifdef _WIN32
++#define DEFAULTINPUTS ".;c:/usr/local/tex/inputs"
++#define CHPATHSEP ';'
++#else
+ #define DEFAULTINPUTS ".:/usr/local/tex/inputs"
+ #define CHPATHSEP ':'
++#endif /* _WIN32 */
+ #endif
+ #endif
+
diff --git a/Build/source/texk/detex/detex-src/detex.h b/Build/source/texk/detex/detex-src/detex.h
index 2fca90b1f9d..169cc57461a 100644
--- a/Build/source/texk/detex/detex-src/detex.h
+++ b/Build/source/texk/detex/detex-src/detex.h
@@ -56,8 +56,13 @@
#define DEFAULTINPUTS ".;/emtex/texinput"
#define CHPATHSEP ';'
#else
+#ifdef _WIN32
+#define DEFAULTINPUTS ".;c:/usr/local/tex/inputs"
+#define CHPATHSEP ';'
+#else
#define DEFAULTINPUTS ".:/usr/local/tex/inputs"
#define CHPATHSEP ':'
+#endif /* _WIN32 */
#endif
#endif