use #if instead of #ifdef
This commit is contained in:
parent
4dd37de858
commit
ed98d3814e
|
@ -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…
Reference in New Issue
Block a user