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:
@@ -289,6 +289,10 @@ der_get_heim_integer (const unsigned char *p, size_t len,
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifndef HAVE_TIMEGM
|
||||
#define timegm(x) _der_timegm(x)
|
||||
#endif
|
||||
|
||||
static int
|
||||
generalizedtime2time (const char *s, time_t *t)
|
||||
{
|
||||
@@ -312,6 +316,7 @@ generalizedtime2time (const char *s, time_t *t)
|
||||
*t = timegm (&tm);
|
||||
return 0;
|
||||
}
|
||||
#undef timegm
|
||||
|
||||
static int
|
||||
der_get_time (const unsigned char *p, size_t len,
|
||||
|
@@ -45,7 +45,7 @@ is_leap(unsigned y)
|
||||
}
|
||||
|
||||
time_t
|
||||
timegm (struct tm *tm)
|
||||
_der_timegm (struct tm *tm)
|
||||
{
|
||||
static const unsigned ndays[2][12] ={
|
||||
{31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31},
|
||||
|
Reference in New Issue
Block a user