From: Paul Eggert Date: Wed, 15 Jun 2016 05:40:18 +0000 (-0700) Subject: Fix ifdef-vs-if typo with RANDR13_LIBRARY X-Git-Tag: emacs-26.0.90~1840^2~228 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=dce99f222f1ca33265cd56ddb157817be1dc078e;p=emacs.git Fix ifdef-vs-if typo with RANDR13_LIBRARY * src/xfns.c (x_get_monitor_attributes_xrandr): Use #if, not #ifdef. This ports to systems that predate xrandr 1.3. See Christian Lynbech in: http://lists.gnu.org/archive/html/emacs-devel/2016-06/msg00198.html --- diff --git a/src/xfns.c b/src/xfns.c index 9ff77738c11..35e2a236f89 100644 --- a/src/xfns.c +++ b/src/xfns.c @@ -4286,7 +4286,7 @@ x_get_monitor_attributes_xrandr (struct x_display_info *dpyinfo) n_monitors = resources->noutput; monitors = xzalloc (n_monitors * sizeof *monitors); -#ifdef RANDR13_LIBRARY +#if RANDR13_LIBRARY if (randr13_avail) pxid = XRRGetOutputPrimary (dpy, dpyinfo->root_window); #endif