~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to gnulib/time.in.h

  • Committer: Monty Taylor
  • Date: 2009-04-14 19:16:51 UTC
  • mto: (997.2.5 mordred)
  • mto: This revision was merged to the branch mainline in revision 994.
  • Revision ID: mordred@inaugust.com-20090414191651-ltbww6hpqks8k7qk
Clarified instructions in README.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* A more-standard <time.h>.
2
2
 
3
 
   Copyright (C) 2007-2008 Free Software Foundation, Inc.
 
3
   Copyright (C) 2007 Free Software Foundation, Inc.
4
4
 
5
5
   This program is free software; you can redistribute it and/or modify
6
6
   it under the terms of the GNU Lesser General Public License as published by
16
16
   along with this program; if not, write to the Free Software Foundation,
17
17
   Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
18
18
 
19
 
#if __GNUC__ >= 3
20
 
@PRAGMA_SYSTEM_HEADER@
 
19
#if !defined(GNULIB_PORTCHECK)
 
20
# define GNULIB_PORTCHECK 0
21
21
#endif
22
22
 
23
23
/* Don't get in the way of glibc when it includes time.h merely to
66
66
int nanosleep (struct timespec const *__rqtp, struct timespec *__rmtp);
67
67
# endif
68
68
 
69
 
/* Return the 'time_t' representation of TP and normalize TP.  */
70
 
# if @REPLACE_MKTIME@
71
 
#  define mktime rpl_mktime
72
 
extern time_t mktime (struct tm *__tp);
73
 
# endif
74
 
 
75
69
/* Convert TIMER to RESULT, assuming local time and UTC respectively.  See
76
70
   <http://www.opengroup.org/susv3xsh/localtime_r.html> and
77
71
   <http://www.opengroup.org/susv3xsh/gmtime_r.html>.  */
97
91
# endif
98
92
 
99
93
/* Convert TM to a time_t value, assuming UTC.  */
100
 
# if @REPLACE_TIMEGM@
 
94
# if @REPLACE_TIMEGM@ || !defined(HAVE_DECL_TIMEGM)
101
95
#  undef timegm
102
96
#  define timegm rpl_timegm
103
97
time_t timegm (struct tm *__tm);
106
100
/* Encourage applications to avoid unsafe functions that can overrun
107
101
   buffers when given outlandish struct tm values.  Portable
108
102
   applications should use strftime (or even sprintf) instead.  */
109
 
# if GNULIB_PORTCHECK
 
103
# if defined(GNULIB_PORTCHECK)
110
104
#  undef asctime
111
105
#  define asctime eschew_asctime
112
106
#  undef asctime_r