From b50ceb3058dc44742459cd6b4bf4a3589c45829f Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Wed, 1 Dec 2004 09:48:12 +0000 Subject: [PATCH] applied patch from Aleksey Gurtovoy moving some stat() definition for * libxslt/security.c xsltproc/xsltproc.c: applied patch from Aleksey Gurtovoy moving some stat() definition for Windows to the right place. Daniel --- ChangeLog | 6 ++++++ libxslt/security.c | 11 +++++++++++ xsltproc/xsltproc.c | 11 ----------- 3 files changed, 17 insertions(+), 11 deletions(-) diff --git a/ChangeLog b/ChangeLog index 25b039ef..5eaff3ea 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Wed Dec 1 10:47:15 CET 2004 Daniel Veillard + + * libxslt/security.c xsltproc/xsltproc.c: applied patch from + Aleksey Gurtovoy moving some stat() definition for Windows + to the right place. + Wed Dec 1 14:30:22 HKT 2004 William Brack * libxslt/xslt.c: applied patch from Mark Vakoc fixing bug with diff --git a/libxslt/security.c b/libxslt/security.c index bb1cf062..cdcf1672 100644 --- a/libxslt/security.c +++ b/libxslt/security.c @@ -34,6 +34,17 @@ #include #endif +#ifndef HAVE_STAT +# ifdef HAVE__STAT + /* MS C library seems to define stat and _stat. The definition + * is identical. Still, mapping them to each other causes a warning. */ +# ifndef _MSC_VER +# define stat(x,y) _stat(x,y) +# endif +# define HAVE_STAT +# endif +#endif + #include #include #include diff --git a/xsltproc/xsltproc.c b/xsltproc/xsltproc.c index 0efbf05e..b53b5e2d 100644 --- a/xsltproc/xsltproc.c +++ b/xsltproc/xsltproc.c @@ -75,17 +75,6 @@ #include #endif -#ifndef HAVE_STAT -# ifdef HAVE__STAT - /* MS C library seems to define stat and _stat. The definition - * is identical. Still, mapping them to each other causes a warning. */ -# ifndef _MSC_VER -# define stat(x,y) _stat(x,y) -# endif -# define HAVE_STAT -# endif -#endif - static int debug = 0; static int repeat = 0; static int timing = 0;