Use #ifdef instead of #if to avoid build error

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

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
Alan Coopersmith
2018-03-04 17:34:06 -08:00
committed by Adam Jackson
parent e0bce0d017
commit 9af7f81534

View File

@@ -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;