Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tools/compat undef and redefine instead of checking if it is...



details:   https://anonhg.NetBSD.org/src/rev/a2cd0f6bd4ff
branches:  trunk
changeset: 750802:a2cd0f6bd4ff
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Jan 14 21:38:19 2010 +0000

description:
undef and redefine instead of checking if it is define, from joerg

diffstat:

 tools/compat/compat_defs.h |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (20 lines):

diff -r 04014ab1048e -r a2cd0f6bd4ff tools/compat/compat_defs.h
--- a/tools/compat/compat_defs.h        Thu Jan 14 21:35:57 2010 +0000
+++ b/tools/compat/compat_defs.h        Thu Jan 14 21:38:19 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: compat_defs.h,v 1.76 2010/01/14 21:26:56 christos Exp $        */
+/*     $NetBSD: compat_defs.h,v 1.77 2010/01/14 21:38:19 christos Exp $        */
 
 #ifndef        __NETBSD_COMPAT_DEFS_H__
 #define        __NETBSD_COMPAT_DEFS_H__
@@ -118,9 +118,8 @@
 #define __restrict
 #undef __unused
 #define __unused
-#ifndef __arraycount
+#undef __arraycount
 #define        __arraycount(__x)       (sizeof(__x) / sizeof(__x[0]))
-#endif
 
 /* Dirent support. */
 



Home | Main Index | Thread Index | Old Index