1
mirror of https://github.com/mpv-player/mpv synced 2024-12-24 07:33:46 +01:00

cleanup: define ROUND() macro in mpcommon.h

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32751 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
cboesch 2011-01-03 19:39:31 +00:00 committed by Uoti Urpala
parent 14c5377a0f
commit 74c285e090
4 changed files with 3 additions and 6 deletions

View File

@ -70,8 +70,6 @@
#include "mp_fifo.h"
#include "libavutil/avstring.h"
#define ROUND(x) ((int)((x)<0 ? (x)-0.5 : (x)+0.5))
extern int use_menu;
static void rescale_input_coordinates(struct MPContext *mpctx, int ix, int iy,

View File

@ -30,8 +30,7 @@
#include "m_option.h"
#include "m_property.h"
#include "mp_msg.h"
#define ROUND(x) ((int)((x)<0 ? (x)-0.5 : (x)+0.5))
#include "mpcommon.h"
static int do_action(const m_option_t* prop_list, const char* name,
int action, void* arg, void *ctx) {

View File

@ -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 */

View File

@ -112,8 +112,6 @@ float start_volume = -1;
char *heartbeat_cmd;
#define ROUND(x) ((int)((x)<0 ? (x)-0.5 : (x)+0.5))
#ifdef HAVE_RTC
#ifdef __linux__
#include <linux/rtc.h>