summaryrefslogtreecommitdiff
path: root/gl/lib
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2008-01-17 10:20:24 +0100
committerJim Meyering <meyering@redhat.com>2008-01-17 10:53:44 +0100
commit27d1636b332084227ca81efced5b90cbe01a1310 (patch)
treee6209ee077f8fd343660ef2839bcc8ce9ac7cc21 /gl/lib
parent0702758ca464da65b4333d63665f104de88b00b4 (diff)
downloadcoreutils-27d1636b332084227ca81efced5b90cbe01a1310.tar.xz
Do not define-away __attribute__ when __STRICT_ANSI__ is set.
* src/system.h (__attribute__): Remove the __STRICT_ANSI__ disjunct. It has been unnecessary since approximately gcc-2.6, and now, leaving it would cause gcc -Werror -ansi to fail to compile csplit.c. * gl/lib/randread.c (__attribute__): Likewise.
Diffstat (limited to 'gl/lib')
-rw-r--r--gl/lib/randread.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gl/lib/randread.c b/gl/lib/randread.c
index 9f65db676..8dfb899a9 100644
--- a/gl/lib/randread.c
+++ b/gl/lib/randread.c
@@ -1,6 +1,6 @@
/* Generate buffers of random data.
- Copyright (C) 2006 Free Software Foundation, Inc.
+ Copyright (C) 2006, 2008 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
@@ -44,7 +44,7 @@
#endif
#ifndef __attribute__
-# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8) || __STRICT_ANSI__
+# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
# define __attribute__(x)
# endif
#endif