From: Christos Zoulas Date: Fri, 16 Sep 2011 21:23:59 +0000 (+0000) Subject: mv __arraycount() define to file.h X-Git-Tag: FILE5_09 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a1b0f6a231a67e899b97a0f2a7fd2f2238f706a0;p=file mv __arraycount() define to file.h --- diff --git a/src/cdf.c b/src/cdf.c index de3fec10..aa2f0436 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.44 2011/08/26 13:38:28 christos Exp $") +FILE_RCSID("@(#)$File: cdf.c,v 1.45 2011/08/28 08:38:48 christos Exp $") #endif #include @@ -57,10 +57,6 @@ FILE_RCSID("@(#)$File: cdf.c,v 1.44 2011/08/26 13:38:28 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 fad9efcb..439e291d 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.132 2011/03/20 20:36:52 christos Exp $ + * @(#)$File: file.h,v 1.133 2011/05/13 22:15:40 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) \