From 3dbbfcc8ae8eafc123d1550de3c9a3ef8ba2ab0b Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 17 Dec 2021 16:42:00 +0000 Subject: mingw patches from Siep and Luigi git-svn-id: svn://tug.org/texlive/trunk@61335 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/web2c/synctexdir/ChangeLog | 7 +++++++ Build/source/texk/web2c/synctexdir/am/synctex.am | 6 +++++- Build/source/texk/web2c/synctexdir/synctex_main.c | 5 +++++ 3 files changed, 17 insertions(+), 1 deletion(-) (limited to 'Build/source/texk/web2c/synctexdir') diff --git a/Build/source/texk/web2c/synctexdir/ChangeLog b/Build/source/texk/web2c/synctexdir/ChangeLog index b9c8399cecd..c9b70a2bb0c 100644 --- a/Build/source/texk/web2c/synctexdir/ChangeLog +++ b/Build/source/texk/web2c/synctexdir/ChangeLog @@ -1,3 +1,10 @@ +2021-12-16 Luigi Scarso + + * synctex_main.c [WIN32]: #include + * am/synctex.am (synctex_CPPFLAGS, synctex_LDADD) [MINGW32]: + include KPATHSEA_* variables. + https://tug.org/pipermail/tlbuild/2021q4/004983.html + 2021-07-24 TANAKA Takuji * synctex_main.c (synctex_test_file): diff --git a/Build/source/texk/web2c/synctexdir/am/synctex.am b/Build/source/texk/web2c/synctexdir/am/synctex.am index 0ecc601f304..19c0875a7ac 100644 --- a/Build/source/texk/web2c/synctexdir/am/synctex.am +++ b/Build/source/texk/web2c/synctexdir/am/synctex.am @@ -18,10 +18,14 @@ synctex_SOURCES = \ synctexdir/synctex_main.c synctex_CPPFLAGS = -I$(srcdir)/synctexdir +if MINGW32 +synctex_CPPFLAGS += $(KPATHSEA_INCLUDES) +endif MINGW32 + synctex_LDADD = $(libsynctex) $(ZLIB_LIBS) if MINGW32 -synctex_LDADD += -lshlwapi +synctex_LDADD += -lshlwapi $(KPATHSEA_LIBS) endif MINGW32 $(synctex_OBJECTS): $(libsynctex) diff --git a/Build/source/texk/web2c/synctexdir/synctex_main.c b/Build/source/texk/web2c/synctexdir/synctex_main.c index fbf0e141f01..788a7cee8e8 100644 --- a/Build/source/texk/web2c/synctexdir/synctex_main.c +++ b/Build/source/texk/web2c/synctexdir/synctex_main.c @@ -103,6 +103,11 @@ inline static double my_fmax(double x, double y) { return (x < y) ? y : x; } #endif */ +#ifdef WIN32 +# include +#endif + + #if SYNCTEX_DEBUG # ifdef WIN32 # include -- cgit v1.2.3