mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-07 05:08:02 +02:00
use #if instead of #ifdef
This commit is contained in:
parent
4dd37de858
commit
ed98d3814e
2 changed files with 3 additions and 3 deletions
|
|
@ -70,7 +70,7 @@ smiScreenInit (KdScreenInfo *screen)
|
||||||
if (!smic->reg_base)
|
if (!smic->reg_base)
|
||||||
screen->dumb = TRUE;
|
screen->dumb = TRUE;
|
||||||
screen->softCursor = TRUE;
|
screen->softCursor = TRUE;
|
||||||
#ifdef SMI_VESA
|
#if SMI_VESA
|
||||||
smis->screen = smis->sub.fb;
|
smis->screen = smis->sub.fb;
|
||||||
#else
|
#else
|
||||||
smis->screen = smic->sub.fb;
|
smis->screen = smic->sub.fb;
|
||||||
|
|
|
||||||
|
|
@ -26,9 +26,9 @@
|
||||||
#ifndef _SMI_H_
|
#ifndef _SMI_H_
|
||||||
#define _SMI_H_
|
#define _SMI_H_
|
||||||
|
|
||||||
#define SMI_VESA 1
|
#define SMI_VESA 0
|
||||||
|
|
||||||
#ifdef SMI_VESA
|
#if SMI_VESA
|
||||||
#include <vesa.h>
|
#include <vesa.h>
|
||||||
#define subGetColors vesaGetColors
|
#define subGetColors vesaGetColors
|
||||||
#define subPutColors vesaPutColors
|
#define subPutColors vesaPutColors
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue