mirror of
https://github.com/mpv-player/mpv
synced 2024-12-28 06:03:45 +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:
parent
14c5377a0f
commit
74c285e090
@ -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,
|
||||
|
@ -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) {
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user