X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Ftimegm.h;h=ee513f4e1194804d04c5dffc70e6bfe524712feb;hb=5fa5d3d767b29cf1d757609afbb56459b09743fa;hp=18df9813e7c49eaf4da6a23bf1b3c855751e0862;hpb=963409a8758faf2b24658c0a23cf0424211263d3;p=gnulib.git diff --git a/lib/timegm.h b/lib/timegm.h index 18df9813e..ee513f4e1 100644 --- a/lib/timegm.h +++ b/lib/timegm.h @@ -1,5 +1,6 @@ -/* Convert calendar time to simple time, inverse of mktime. - Copyright (C) 2003 Free Software Foundation, Inc. +/* Convert UTC calendar time to simple time. Like mktime but assumes UTC. + + Copyright (C) 2003, 2005 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -13,19 +14,10 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, - Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ - -#ifdef HAVE_TIMEGM - -/* Get timegm declaration. */ -#include - -#else + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -/* Get time_t and struct tm. */ #include -/* Convert calendar time to simple time, inverse of mktime. */ -extern time_t timegm (struct tm *tm); - +#if defined HAVE_DECL_TIMEGM && !HAVE_DECL_TIMEGM +time_t timegm (struct tm *tm); #endif