diff options
author | Luigi Scarso <luigi.scarso@gmail.com> | 2018-03-21 13:07:01 +0000 |
---|---|---|
committer | Luigi Scarso <luigi.scarso@gmail.com> | 2018-03-21 13:07:01 +0000 |
commit | de6f328181f98d08b3e92d15efd92247054ac7c7 (patch) | |
tree | a65bcb3cd65de48c9a1176706bc0ae9a762dd16b /Build/source/libs/poppler/poppler-src | |
parent | 32c2a129a8a31b5f3c140397f7c2a0cfb5080501 (diff) |
aligned gfile.cc with the current poppler (committ 46543272dbe7655821e1c794ca3cc22e8cb4cef9)
git-svn-id: svn://tug.org/texlive/trunk@47061 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/libs/poppler/poppler-src')
-rw-r--r-- | Build/source/libs/poppler/poppler-src/goo/gfile.cc | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/Build/source/libs/poppler/poppler-src/goo/gfile.cc b/Build/source/libs/poppler/poppler-src/goo/gfile.cc index 5630566c1fe..06014b3e5a8 100644 --- a/Build/source/libs/poppler/poppler-src/goo/gfile.cc +++ b/Build/source/libs/poppler/poppler-src/goo/gfile.cc @@ -65,6 +65,8 @@ #define PATH_MAX 1024 #endif +#ifndef _WIN32 + namespace { template< typename... > @@ -80,14 +82,7 @@ template< typename Stat, typename = void_t<> > struct StatMtim { static const struct timespec& value(const Stat& stbuf) { -#ifdef HAVE_STRUCT_STAT_ST_MTIM return stbuf.st_mtim; -#else - static struct timespec t ; - t.tv_sec=stbuf.st_mtime; - t.tv_nsec=0; - return t; -#endif } }; @@ -106,6 +101,8 @@ inline const struct timespec& mtim(const struct stat& stbuf) { } +#endif + //------------------------------------------------------------------------ GooString *getCurrentDir() { |