summaryrefslogtreecommitdiff
path: root/lib/sys_time.in.h
diff options
context:
space:
mode:
authorEric Blake <eblake@redhat.com>2010-03-31 07:57:51 -0600
committerEric Blake <eblake@redhat.com>2010-03-31 07:57:51 -0600
commitb3119f181de14c17aaf923846713526fd82891bf (patch)
treee420e894fd42d722515a0b29a0048906b3b3d5f0 /lib/sys_time.in.h
parent617dd8895438dd9098491190681eea6720886efb (diff)
downloadgnulib-b3119f181de14c17aaf923846713526fd82891bf.tar.gz
sys_time: avoid compiler warnings
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>
Diffstat (limited to 'lib/sys_time.in.h')
-rw-r--r--lib/sys_time.in.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sys_time.in.h b/lib/sys_time.in.h
index 6d818d1e81..6e0c7db984 100644
--- a/lib/sys_time.in.h
+++ b/lib/sys_time.in.h
@@ -18,12 +18,12 @@
/* Written by Paul Eggert. */
-#if defined _GL_SYS_TIME_H
-
#if __GNUC__ >= 3
@PRAGMA_SYSTEM_HEADER@
#endif
+#if defined _GL_SYS_TIME_H
+
/* Simply delegate to the system's header, without adding anything. */
# if @HAVE_SYS_TIME_H@
# @INCLUDE_NEXT@ @NEXT_SYS_TIME_H@