diff options
Diffstat (limited to 'mpvcore')
-rw-r--r-- | mpvcore/mp_common.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mpvcore/mp_common.h b/mpvcore/mp_common.h index 651136d2cb..ee2f055807 100644 --- a/mpvcore/mp_common.h +++ b/mpvcore/mp_common.h @@ -36,6 +36,8 @@ #define MPMAX(a, b) ((a) > (b) ? (a) : (b)) #define MPMIN(a, b) ((a) > (b) ? (b) : (a)) +#define MPSWAP(type, a, b) \ + do { type SWAP_tmp = b; b = a; a = SWAP_tmp; } while (0) #define MP_ARRAY_SIZE(s) (sizeof(s) / sizeof((s)[0])) #define CONTROL_OK 1 |