diff options
author | Karl Berry <karl@freefriends.org> | 2021-12-17 16:42:00 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-12-17 16:42:00 +0000 |
commit | 3dbbfcc8ae8eafc123d1550de3c9a3ef8ba2ab0b (patch) | |
tree | a88a4807fdea71f2fbf9fdf32b1176ba14ee6266 /Build/source/texk/web2c/synctexdir | |
parent | f0766d14d2d278ee0a6479b62a45ec03461933d5 (diff) |
mingw patches from Siep and Luigi
git-svn-id: svn://tug.org/texlive/trunk@61335 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/synctexdir')
-rw-r--r-- | Build/source/texk/web2c/synctexdir/ChangeLog | 7 | ||||
-rw-r--r-- | Build/source/texk/web2c/synctexdir/am/synctex.am | 6 | ||||
-rw-r--r-- | Build/source/texk/web2c/synctexdir/synctex_main.c | 5 |
3 files changed, 17 insertions, 1 deletions
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 <luigi.scarso@gmail.com> + + * synctex_main.c [WIN32]: #include <kpathsea/progname.h> + * am/synctex.am (synctex_CPPFLAGS, synctex_LDADD) [MINGW32]: + include KPATHSEA_* variables. + https://tug.org/pipermail/tlbuild/2021q4/004983.html + 2021-07-24 TANAKA Takuji <ttk@t-lab.opal.ne.jp> * 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 <kpathsea/progname.h> +#endif + + #if SYNCTEX_DEBUG # ifdef WIN32 # include <direct.h> |