summaryrefslogtreecommitdiff
path: root/src
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 /src
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 'src')
-rw-r--r--src/system.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/system.h b/src/system.h
index 0cd0804ce..54c8a8b3d 100644
--- a/src/system.h
+++ b/src/system.h
@@ -1,5 +1,5 @@
/* system-dependent definitions for coreutils
- Copyright (C) 1989, 1991-2007 Free Software Foundation, Inc.
+ Copyright (C) 1989, 1991-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
@@ -473,7 +473,7 @@ enum
#endif
#ifndef __attribute__
-# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8) || __STRICT_ANSI__
+# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
# define __attribute__(x) /* empty */
# endif
#endif