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 82b860bd87..891331293f 100644
--- a/mpcommon.h
+++ b/mpcommon.h
@@ -22,6 +22,8 @@
// both int64_t and double should be able to represent this exactly
#define MP_NOPTS_VALUE (-1LL<<63)
+#define ROUND(x) ((int)((x) < 0 ? (x) - 0.5 : (x) + 0.5))
+
extern const char *mplayer_version;
#endif /* MPLAYER_MPCOMMON_H */