[PATCH:xf86-video-fbdev] Use #ifdef instead of #if to avoid build error

Alan Coopersmith alan.coopersmith at oracle.com
Mon Mar 5 01:34:06 UTC 2018


fbdev.c:491:21: error: #if with no expression
 #if HAVE_SHADOW_3224
                     ^

Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
---
 src/fbdev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/fbdev.c b/src/fbdev.c
index af1587f..421b26a 100644
--- a/src/fbdev.c
+++ b/src/fbdev.c
@@ -488,7 +488,7 @@ FBDevPreInit(ScrnInfoPtr pScrn, int flags)
 	} while (0);
 
         fPtr->shadow24 = FALSE;
-#if HAVE_SHADOW_3224
+#ifdef HAVE_SHADOW_3224
         /* okay but 24bpp is awful */
         if (fbbpp == 24) {
             fPtr->shadow24 = TRUE;
-- 
2.15.0



More information about the xorg-devel mailing list