diff options
author | Sandy Stutsman <sstutsma@redhat.com> | 2015-09-16 13:06:02 -0400 |
---|---|---|
committer | Sandy Stutsman <sstutsma@redhat.com> | 2015-09-16 13:06:02 -0400 |
commit | 31a59216065709e0fdf8713e5b2a3ce0496b950a (patch) | |
tree | 9ff76757902c09989d3e22793652e4f8ce3da1c9 | |
parent | ed37b635188893719c59d71c031feddd01408f36 (diff) |
Remove redundant macro definitions.
A change to spice-procotol adds spice/macros.h to the qxl build. This
causes a few macros to be redefined, resulting in warnings that break the
build.
Explicitly including the spice/macros.h file in place of the
redundant macros fixes the warnings.
-rw-r--r-- | xddm/display/quic.c | 2 | ||||
-rw-r--r-- | xddm/display/utils.h | 4 |
2 files changed, 1 insertions, 5 deletions
diff --git a/xddm/display/quic.c b/xddm/display/quic.c index ee12fab..504c719 100644 --- a/xddm/display/quic.c +++ b/xddm/display/quic.c @@ -60,8 +60,6 @@ #define QUIC_VERSION_MINOR 1U #define QUIC_VERSION ((QUIC_VERSION_MAJOR << 16) | (QUIC_VERSION_MAJOR & 0xffff)) -#define ABS(a) ((a) >= 0 ? (a) : -(a)) - #ifdef ASSERT #undef ASSERT #endif diff --git a/xddm/display/utils.h b/xddm/display/utils.h index a8d0de6..d5283c5 100644 --- a/xddm/display/utils.h +++ b/xddm/display/utils.h @@ -21,9 +21,7 @@ #ifndef _H_UTILS #define _H_UTILS - -#define MIN(x, y) (((x) <= (y)) ? (x) : (y)) -#define MAX(x, y) (((x) >= (y)) ? (x) : (y)) +#include <spice/macros.h> #define ALIGN(a, b) (((a) + ((b) - 1)) & ~((b) - 1)) |