summaryrefslogtreecommitdiffstats
path: root/mpcommon.h
diff options
context:
space:
mode:
authorcboesch <cboesch@b3059339-0415-0410-9bf9-f77b7e298cf2>2011-01-03 19:39:31 +0000
committerUoti Urpala <uau@glyph.nonexistent.invalid>2011-01-31 16:03:10 +0200
commit74c285e090b875d1a1e4e32adc28dcf12469a8b4 (patch)
treee8d7dea2823b77179f095485e5b49cbf2736a4f8 /mpcommon.h
parent14c5377a0f3f5f94bd76f833d09b3f858165d160 (diff)
downloadmpv-74c285e090b875d1a1e4e32adc28dcf12469a8b4.tar.bz2
mpv-74c285e090b875d1a1e4e32adc28dcf12469a8b4.tar.xz
cleanup: define ROUND() macro in mpcommon.h
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32751 b3059339-0415-0410-9bf9-f77b7e298cf2
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 */