summaryrefslogtreecommitdiffstats
path: root/mpcommon.h
diff options
context:
space:
mode:
Diffstat (limited to 'mpcommon.h')
-rw-r--r--mpcommon.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/mpcommon.h b/mpcommon.h
index 891331293f..bc35934e41 100644
--- a/mpcommon.h
+++ b/mpcommon.h
@@ -24,6 +24,8 @@
#define ROUND(x) ((int)((x) < 0 ? (x) - 0.5 : (x) + 0.5))
+#define MP_TALLOC_ELEMS(p) (talloc_get_size(p) / sizeof((p)[0]))
+
extern const char *mplayer_version;
#endif /* MPLAYER_MPCOMMON_H */