rename the buildin timegm to _der_timegm

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18447 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2006-10-14 09:17:43 +00:00
parent 31791a1815
commit 9dc0d8d6b4
2 changed files with 6 additions and 1 deletions

View File

@@ -289,6 +289,10 @@ der_get_heim_integer (const unsigned char *p, size_t len,
return 0; return 0;
} }
#ifndef HAVE_TIMEGM
#define timegm(x) _der_timegm(x)
#endif
static int static int
generalizedtime2time (const char *s, time_t *t) generalizedtime2time (const char *s, time_t *t)
{ {
@@ -312,6 +316,7 @@ generalizedtime2time (const char *s, time_t *t)
*t = timegm (&tm); *t = timegm (&tm);
return 0; return 0;
} }
#undef timegm
static int static int
der_get_time (const unsigned char *p, size_t len, der_get_time (const unsigned char *p, size_t len,

View File

@@ -45,7 +45,7 @@ is_leap(unsigned y)
} }
time_t time_t
timegm (struct tm *tm) _der_timegm (struct tm *tm)
{ {
static const unsigned ndays[2][12] ={ static const unsigned ndays[2][12] ={
{31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}, {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31},