bug-gnulib
[Top][All Lists]
Advanced

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

Re: [bug-gnulib] Re: no rpl_mktime in mktime.c


From: Paul Eggert
Subject: Re: [bug-gnulib] Re: no rpl_mktime in mktime.c
Date: Mon, 11 Jul 2005 16:05:40 -0700
User-agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux)

Bruno Haible <address@hidden> writes:

> - Which header files are included by the program, in which order?

That I don't know, but it's pretty easy to see how the problem
would arise by looking at the header (see the pattern below).

> - Which C++ header undefines mktime?

On my Debian GNU/Linux 3.1 r0a host, it's /usr/include/c++/3.3/ctime.
Its contents look like this:

   #ifndef _CPP_CTIME
   #define _CPP_CTIME 1

   #pragma GCC system_header
   #include <cstddef>
   #include <time.h>

   // Get rid of those macros defined in <time.h> in lieu of real functions.
   #undef clock
   #undef difftime
   #undef mktime
   ...

   namespace std
   {
     using ::clock_t;
     using ::time_t;
     using ::tm;

     using ::clock;
     using ::difftime;
     using ::mktime;
     ...
   }

   #endif




reply via email to

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