summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2019-03-03 17:21:45 +0200
committerVille Syrjälä <ville.syrjala@linux.intel.com>2019-09-19 18:41:21 +0300
commit04d8411d6cd7bac36fd44f925cb420ace17675f3 (patch)
tree80c1b68c0f89255491931dc4f011654288f85c4a /src
parent2fae3b89f2d9e5aeb64205ea3fa1ea1a8a010911 (diff)
sna: undef FontSetPrivate() before redefining it
Avoid the compiler gettings upset about us redefining FontSetPrivate(). Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Diffstat (limited to 'src')
-rw-r--r--src/sna/sna_accel.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c
index 7fd00b9a..934c8f66 100644
--- a/src/sna/sna_accel.c
+++ b/src/sna/sna_accel.c
@@ -121,6 +121,7 @@
#if XFONT2_CLIENT_FUNCS_VERSION >= 1
#define AllocateFontPrivateIndex() xfont2_allocate_font_private_index()
+#undef FontSetPrivate
#define FontSetPrivate(font, idx, data) xfont2_font_set_private(font, idx, data)
#endif