summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTor Andersson <tor@ghostscript.com>2004-12-06 18:08:20 +0100
committerTor Andersson <tor@ghostscript.com>2004-12-06 18:08:20 +0100
commitf04ff9cf7f22f9a34f6e9ed1d8159fe67eb2c79d (patch)
treedd43cdef26db51a5ee7edc232b7406721cce2edf /include
parent6162dc43d376fce8906160d51e3ab076d83632aa (diff)
downloadmupdf-f04ff9cf7f22f9a34f6e9ed1d8159fe67eb2c79d.tar.xz
xref parse workaround. font config messing. shade cleanup.
Diffstat (limited to 'include')
-rw-r--r--include/fitz/base.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/fitz/base.h b/include/fitz/base.h
index 562bb1df..d6b35592 100644
--- a/include/fitz/base.h
+++ b/include/fitz/base.h
@@ -4,6 +4,9 @@
#undef offsetof
#define offsetof(s, m) (unsigned long)(&(((s*)0)->m))
+#undef nelem
+#define nelem(x) (sizeof(x)/sizeof((x)[0]))
+
#undef ABS
#define ABS(x) ( (x) < 0 ? -(x) : (x) )