summaryrefslogtreecommitdiff
path: root/src/nv_const.h
diff options
context:
space:
mode:
authorYusuf Khan <yusisamerican@gmail.com>2024-02-17 14:35:11 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2024-03-17 20:52:28 +0000
commitd06264d7a350846584dd12b11203769c61c23023 (patch)
tree3e28399be4a370880203494af8ee6c892a294e5e /src/nv_const.h
parentc8ab8f7868c1891a146e9f679278b990f1e23516 (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_const.h')
-rw-r--r--src/nv_const.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nv_const.h b/src/nv_const.h
index 8f9799c..6f3dfd0 100644
--- a/src/nv_const.h
+++ b/src/nv_const.h
@@ -6,7 +6,7 @@
#define NV_DRIVER_NAME "nv"
/* libpciaccess gratuitous API changes */
-#if XSERVER_LIBPCIACCESS
+#ifdef XSERVER_LIBPCIACCESS
#define MEMBASE(p,n) (p)->regions[n].base_addr
#define VENDOR_ID(p) (p)->vendor_id
#define DEVICE_ID(p) (p)->device_id