Module Name: src
Committed By: christos
Date: Thu Jan 14 21:38:19 UTC 2010
Modified Files:
src/tools/compat: compat_defs.h
Log Message:
undef and redefine instead of checking if it is define, from joerg
To generate a diff of this commit:
cvs rdiff -u -r1.76 -r1.77 src/tools/compat/compat_defs.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/tools/compat/compat_defs.h
diff -u src/tools/compat/compat_defs.h:1.76 src/tools/compat/compat_defs.h:1.77
--- src/tools/compat/compat_defs.h:1.76 Thu Jan 14 16:26:56 2010
+++ src/tools/compat/compat_defs.h Thu Jan 14 16:38:19 2010
@@ -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. */