From: Christos Zoulas Date: Fri, 16 Sep 2011 21:23:59 +0000 (+0000) Subject: mv __arraycount() define to file.h X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a1c9374ce19c18ce2d580ed2e0fee2c3267cafad;p=file mv __arraycount() define to file.h --- diff --git a/src/cdf.c b/src/cdf.c index 9d73a598..ceb61f88 100644 --- a/src/cdf.c +++ b/src/cdf.c @@ -35,7 +35,7 @@ #include "file.h" #ifndef lint -FILE_RCSID("@(#)$File: cdf.c,v 1.45 2011/08/28 08:38:48 christos Exp $") +FILE_RCSID("@(#)$File: cdf.c,v 1.46 2011/09/16 21:23:59 christos Exp $") #endif #include @@ -57,10 +57,6 @@ FILE_RCSID("@(#)$File: cdf.c,v 1.45 2011/08/28 08:38:48 christos Exp $") #include "cdf.h" -#ifndef __arraycount -#define __arraycount(a) (sizeof(a) / sizeof(a[0])) -#endif - #ifdef CDF_DEBUG #define DPRINTF(a) printf a, fflush(stdout) #else diff --git a/src/file.h b/src/file.h index 93d15593..8a3c3433 100644 --- a/src/file.h +++ b/src/file.h @@ -27,7 +27,7 @@ */ /* * file.h - definitions for file(1) program - * @(#)$File: file.h,v 1.133 2011/05/13 22:15:40 christos Exp $ + * @(#)$File: file.h,v 1.134 2011/09/16 21:23:59 christos Exp $ */ #ifndef __file_h__ @@ -86,6 +86,10 @@ #endif #define public +#ifndef __arraycount +#define __arraycount(a) (sizeof(a) / sizeof(a[0])) +#endif + #ifndef __GNUC_PREREQ__ #ifdef __GNUC__ #define __GNUC_PREREQ__(x, y) \