summaryrefslogtreecommitdiff
path: root/lib/sys_time.in.h
Commit message (Collapse)AuthorAgeFilesLines
* Use spaces for indentation, not tabs.Bruno Haible2010-07-281-1/+1
|
* sys_time: avoid compiler warningsEric Blake2010-03-311-2/+2
| | | | | | | | | | | | sys/time uses #if/#else/#endif, and is therefore not subject to the gcc optimization. The #pragma GCC system_header must occur up front. * lib/sys_time.in.h (includes): Ensure gcc pragma is unconditional, fixing regression from 2010-03-29. Reported by Simon Josefsson. Signed-off-by: Eric Blake <eblake@redhat.com>
* Emit #pragma system_header after the inclusion guard, not before.Bruno Haible2010-03-301-2/+2
|
* sys_time: Avoid #define replacements in C++ mode.Bruno Haible2010-03-081-12/+28
|
* gettimeofday: restore support for platforms that lack functionEric Blake2010-02-221-0/+2
| | | | | | | | | | | | | Fixes a regression from 2010-02-04, commit de4d0a3. * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile replacement if function is missing. * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness. * modules/sys_time (Makefile.am): Substitute it. * lib/sys_time.in.h (gettimeofday): Check it. Reported by Michael Goffioul. Signed-off-by: Eric Blake <eblake@redhat.com>
* sys_time: use link-warningEric Blake2010-02-011-3/+13
| | | | | | | | | | | | | | | | | | | | Modernize replacement header, to allow another GNULIB_POSIXCHECK opportunity. * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults... (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro. (gl_SYS_TIME_MODULE_INDICATOR): New macro. * modules/sys_time (Depends-on): Add warn-on-use. (Makefile.am): Always build replacement. (configure.ac): Update substitutions. * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY) (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer bother with SYS_TIME_H. * modules/gettimeofday (configure.ac): Declare indicator. * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not in use. Signed-off-by: Eric Blake <ebb9@byu.net>
* update nearly all FSF copyright year lists to include 2010Jim Meyering2010-01-011-1/+1
| | | | | Use the same procedure as for 2009, outlined in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
* New module 'arg-nonnull'. Declare which arguments expect non-NULL values.Bruno Haible2009-12-111-2/+5
|
* sys_time: Add extern "C" block for C++.Simon Josefsson2008-11-281-0/+8
|
* Avoid gcc warnings because of #pragma GCC system_header on older gcc.Bruno Haible2008-10-181-0/+2
|
* Avoid some "gcc -pedantic" warnings.Bruno Haible2008-08-301-1/+3
|
* Rename sys_time_.h to sys_time.in.h.Bruno Haible2007-10-021-0/+52