From ca97bb4c7a45ea2cb09ddb2940b22999de00cf2c Mon Sep 17 00:00:00 2001 From: Akira Kakuto Date: Tue, 20 Mar 2018 21:02:43 +0000 Subject: Add patch for windows git-svn-id: svn://tug.org/texlive/trunk@47041 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/libs/poppler/TLpatches/ChangeLog | 4 ++++ Build/source/libs/poppler/TLpatches/patch-05-w32 | 19 +++++++++++++++++++ Build/source/libs/poppler/poppler-src/goo/gfile.cc | 2 ++ 3 files changed, 25 insertions(+) create mode 100644 Build/source/libs/poppler/TLpatches/patch-05-w32 diff --git a/Build/source/libs/poppler/TLpatches/ChangeLog b/Build/source/libs/poppler/TLpatches/ChangeLog index 629722ebf90..0dc44506fc2 100644 --- a/Build/source/libs/poppler/TLpatches/ChangeLog +++ b/Build/source/libs/poppler/TLpatches/ChangeLog @@ -1,3 +1,7 @@ +2018-03-20 Akira Kakuto + + * patch-05-w32: Added to compile gfile.cc on Windows. + 2018-03-18 Akira Kakuto * Import poppler-0.63.0. diff --git a/Build/source/libs/poppler/TLpatches/patch-05-w32 b/Build/source/libs/poppler/TLpatches/patch-05-w32 new file mode 100644 index 00000000000..8c77eea5599 --- /dev/null +++ b/Build/source/libs/poppler/TLpatches/patch-05-w32 @@ -0,0 +1,19 @@ +diff -ur poppler-0.63.0/goo/gfile.cc poppler-src/goo/gfile.cc +--- poppler-0.63.0/goo/gfile.cc Mon Mar 19 03:23:49 2018 ++++ poppler-src/goo/gfile.cc Wed Mar 21 05:50:42 2018 +@@ -65,6 +65,7 @@ + #define PATH_MAX 1024 + #endif + ++#if !defined(_WIN32) + namespace { + + template< typename... > +@@ -99,6 +100,7 @@ + + } + ++#endif /* !_WIN32 */ + //------------------------------------------------------------------------ + + GooString *getCurrentDir() { diff --git a/Build/source/libs/poppler/poppler-src/goo/gfile.cc b/Build/source/libs/poppler/poppler-src/goo/gfile.cc index 218882d32d7..bea6bb61543 100644 --- a/Build/source/libs/poppler/poppler-src/goo/gfile.cc +++ b/Build/source/libs/poppler/poppler-src/goo/gfile.cc @@ -65,6 +65,7 @@ #define PATH_MAX 1024 #endif +#if !defined(_WIN32) namespace { template< typename... > @@ -99,6 +100,7 @@ inline const struct timespec& mtim(const struct stat& stbuf) { } +#endif /* !_WIN32 */ //------------------------------------------------------------------------ GooString *getCurrentDir() { -- cgit v1.2.3