]> granicus.if.org Git - file/commitdiff
mv __arraycount() define to file.h
authorChristos Zoulas <christos@zoulas.com>
Fri, 16 Sep 2011 21:23:59 +0000 (21:23 +0000)
committerChristos Zoulas <christos@zoulas.com>
Fri, 16 Sep 2011 21:23:59 +0000 (21:23 +0000)
src/cdf.c
src/file.h

index 9d73a598f0fe0c1895f64dbd46bb2d131bc24c0b..ceb61f8847f69424e2033307dbb08dc2723dcec8 100644 (file)
--- 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 <assert.h>
@@ -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
index 93d155933a55efe3ba3076c1877330c06ee152bb..8a3c3433beb4782e6c4beb6b6ebc4c3ad8dffc89 100644 (file)
@@ -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__
 #endif
 #define public
 
+#ifndef __arraycount
+#define __arraycount(a) (sizeof(a) / sizeof(a[0]))
+#endif
+
 #ifndef __GNUC_PREREQ__
 #ifdef __GNUC__
 #define        __GNUC_PREREQ__(x, y)                                           \