aboutsummaryrefslogtreecommitdiff
path: root/render
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2022-11-25 18:15:31 +0100
committerAlexander Orzechowski <alex@ozal.ski>2022-12-06 22:39:45 +0000
commit86fc2199f85ac0e1089bb7fd5a0b5cbc432bdb67 (patch)
tree3b97acbbdd4d2bf3b956d2e2594bd5b79958dfee /render
parenta4a40618adb287d6ebebf099ca4d64f39b7f7770 (diff)
build: unify naming for HAVE_* defines
We sometimes used HAS_, sometimes polluted the LIBINPUT_ namespace, etc.
Diffstat (limited to 'render')
-rw-r--r--render/allocator/gbm.c2
-rw-r--r--render/allocator/meson.build2
2 files changed, 2 insertions, 2 deletions
diff --git a/render/allocator/gbm.c b/render/allocator/gbm.c
index a41065b5..149ff6b9 100644
--- a/render/allocator/gbm.c
+++ b/render/allocator/gbm.c
@@ -41,7 +41,7 @@ static bool export_gbm_bo(struct gbm_bo *bo,
int i;
int32_t handle = -1;
for (i = 0; i < attribs.n_planes; ++i) {
-#if HAS_GBM_BO_GET_FD_FOR_PLANE
+#if HAVE_GBM_BO_GET_FD_FOR_PLANE
(void)handle;
attribs.fd[i] = gbm_bo_get_fd_for_plane(bo, i);
diff --git a/render/allocator/meson.build b/render/allocator/meson.build
index 1fdfe557..730a2a41 100644
--- a/render/allocator/meson.build
+++ b/render/allocator/meson.build
@@ -21,5 +21,5 @@ if gbm.found()
features += { 'gbm-allocator': true }
has = cc.has_function('gbm_bo_get_fd_for_plane', dependencies: [gbm])
- internal_config.set10('HAS_GBM_BO_GET_FD_FOR_PLANE', has)
+ internal_config.set10('HAVE_GBM_BO_GET_FD_FOR_PLANE', has)
endif