1
0
mirror of https://gitlab.gnome.org/GNOME/libxslt synced 2025-11-08 11:02:18 +03:00

okay the code from Norm is really non portable and break everywhere except

* libxslt/extra.c: okay the code from Norm is really non
  portable and break everywhere except on Sun and Linux
  platform. Compile it only on those targets.
Daniel
This commit is contained in:
Daniel Veillard
2001-09-15 15:33:27 +00:00
parent e21424f588
commit ecf1181ac1
2 changed files with 10 additions and 5 deletions

View File

@@ -1,3 +1,9 @@
Sat Sep 15 17:32:16 CEST 2001 Daniel Veillard <daniel@veillard.com>
* libxslt/extra.c: okay the code from Norm is really non
portable and break everywhere except on Sun and Linux
platform. Compile it only on those targets.
Sat Sep 15 06:25:02 CEST 2001 Thomas Broyer <tbroyer@ltgt.net>
* libexslt/date.c: fixed some bugs (reported by Charles Bozeman

View File

@@ -146,11 +146,10 @@ xsltFunctionNodeSet(xmlXPathParserContextPtr ctxt, int nargs){
}
/*
* Seems FreeBSD decided not to provide the timezone libc varaible
* C.f bug report #59570 http://bugzilla.gnome.org/show_bug.cgi?id=59570
* Okay the following really seems unportable and since it's not
* part of any standard I'm not too ashamed to do this
*/
#ifndef __FreeBSD__
#if defined(linux) || defined(__sun)
#if defined(HAVE_MKTIME) && defined(HAVE_LOCALTIME) && defined(HAVE_ASCTIME)
#define WITH_LOCALTIME
@@ -268,7 +267,7 @@ xsltFunctionLocalTime(xmlXPathParserContextPtr ctxt, int nargs) {
valuePush(ctxt, xmlXPathNewString((xmlChar *)result));
}
#endif
#endif /* __FreeBSD__ */
#endif /* linux or sun */
/**