bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: no rpl_mktime in mktime.c


From: Paul Eggert
Subject: Re: no rpl_mktime in mktime.c
Date: Fri, 08 Jul 2005 15:32:27 -0700
User-agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux)

Patrice Dumas <address@hidden> writes:

> But that's not how it's done for mktime. Indeed in m4/mktime.m4 there is
> AC_DEFINE(mktime, rpl_mktime
> while in lib/mktime.c there is
>
> time_t
> mktime (struct tm *tp)
>
> and not
> time_t
> rpl_mktime (struct tm *tp)
>  
> Doesn't that cause an error with rpl_mktime not found?

No, because the "#define mktime rpl_mktime" applies also to
the mktime in lib/mktime.c.

Unlike some of the other modules, lib/mktime.c is not a wrapper around
the system mktime.  It is a complete reimplementation, so there's no
need for an "#undef mktime" or a "rpl_mktime" in lib/mktime.c itself.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]