diff options
author | Yusuf Khan <yusisamerican@gmail.com> | 2024-02-17 14:35:11 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2024-03-17 20:52:28 +0000 |
commit | d06264d7a350846584dd12b11203769c61c23023 (patch) | |
tree | 3e28399be4a370880203494af8ee6c892a294e5e /src/nv_setup.c | |
parent | c8ab8f7868c1891a146e9f679278b990f1e23516 (diff) |
treewide: #if -> #ifdef
I think the latest version of gcc got stricter in regards to this
for some reason.
Signed-off-by: Yusuf Khan <yusisamerican@gmail.com>
Diffstat (limited to 'src/nv_setup.c')
-rw-r--r-- | src/nv_setup.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nv_setup.c b/src/nv_setup.c index 92ca3ec..6a7c048 100644 --- a/src/nv_setup.c +++ b/src/nv_setup.c @@ -287,7 +287,7 @@ static void nv10GetConfig (NVPtr pNv) } #endif -#if XSERVER_LIBPCIACCESS +#ifdef XSERVER_LIBPCIACCESS { /* [AGP]: I don't know if this is correct */ struct pci_device *dev = pci_device_find_by_slot(0, 0, 0, 1); @@ -346,7 +346,7 @@ NVCommonSetup(ScrnInfoPtr pScrn) int FlatPanel = -1; /* really means the CRTC is slaved */ Bool Television = FALSE; void *tmp; -#if XSERVER_LIBPCIACCESS +#ifdef XSERVER_LIBPCIACCESS int err; #endif @@ -378,7 +378,7 @@ NVCommonSetup(ScrnInfoPtr pScrn) pVga->MMIOBase = (CARD8 *)pNv; pVga->MMIOOffset = 0; -#if XSERVER_LIBPCIACCESS +#ifdef XSERVER_LIBPCIACCESS err = pci_device_map_range(pNv->PciInfo, pNv->IOAddress, 0x01000000, PCI_DEV_MAP_FLAG_WRITABLE, &tmp); if (err != 0) { |