From d5bf11e5b58b3ff5a523257d2729e54790cdda24 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Thu, 4 Sep 2008 16:15:12 +0000 Subject: ISO-8859-n codec. This needs some testing. svn path=/trunk/libparserutils/; revision=5233 --- src/utils/utils.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/utils') diff --git a/src/utils/utils.h b/src/utils/utils.h index 5162945..2a61c2d 100644 --- a/src/utils/utils.h +++ b/src/utils/utils.h @@ -25,4 +25,8 @@ #define UNUSED(x) ((x)=(x)) #endif +#ifndef N_ELEMENTS +#define N_ELEMENTS(s) (sizeof((s)) / sizeof((s)[0])) +#endif + #endif -- cgit v1.2.3