Blame lib/mktime-internal.h

Packit Service fdd496
/* mktime variant that also uses an offset guess
Packit Service fdd496
Packit Service fdd496
   Copyright 2016-2017 Free Software Foundation, Inc.
Packit Service fdd496
Packit Service fdd496
   This program is free software; you can redistribute it and/or
Packit Service fdd496
   modify it under the terms of the GNU General Public
Packit Service fdd496
   License as published by the Free Software Foundation; either
Packit Service fdd496
   version 3 of the License, or (at your option) any later version.
Packit Service fdd496
Packit Service fdd496
   This program is distributed in the hope that it will be useful,
Packit Service fdd496
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service fdd496
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit Service fdd496
   General Public License for more details.
Packit Service fdd496
Packit Service fdd496
   You should have received a copy of the GNU General Public
Packit Service fdd496
   License along with this program; if not, see
Packit Service fdd496
   <http://www.gnu.org/licenses/>.  */
Packit Service fdd496
Packit Service fdd496
#include <time.h>
Packit Service fdd496
Packit Service fdd496
/* mktime_offset_t is a signed type wide enough to hold a UTC offset
Packit Service fdd496
   in seconds, and used as part of the type of the offset-guess
Packit Service fdd496
   argument to mktime_internal.  Use time_t on platforms where time_t
Packit Service fdd496
   is signed, to be compatible with platforms like BeOS that export
Packit Service fdd496
   this implementation detail of mktime.  On platforms where time_t is
Packit Service fdd496
   unsigned, GNU and POSIX code can assume 'int' is at least 32 bits
Packit Service fdd496
   which is wide enough for a UTC offset.  */
Packit Service fdd496
Packit Service fdd496
#if TIME_T_IS_SIGNED
Packit Service fdd496
typedef time_t mktime_offset_t;
Packit Service fdd496
#else
Packit Service fdd496
typedef int mktime_offset_t;
Packit Service fdd496
#endif
Packit Service fdd496
Packit Service fdd496
time_t mktime_internal (struct tm *,
Packit Service fdd496
                        struct tm * (*) (time_t const *, struct tm *),
Packit Service fdd496
                        mktime_offset_t *);