mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-01 22:58:38 -04:00
build: unify naming for HAVE_* defines
We sometimes used HAS_, sometimes polluted the LIBINPUT_ namespace, etc.
This commit is contained in:
parent
a4a40618ad
commit
86fc2199f8
11 changed files with 22 additions and 22 deletions
|
|
@ -72,7 +72,7 @@ void handle_pointer_button(struct libinput_event *event,
|
|||
struct wlr_pointer *pointer);
|
||||
void handle_pointer_axis(struct libinput_event *event,
|
||||
struct wlr_pointer *pointer);
|
||||
#if LIBINPUT_HAS_SCROLL_VALUE120
|
||||
#if HAVE_LIBINPUT_SCROLL_VALUE120
|
||||
void handle_pointer_axis_value120(struct libinput_event *event,
|
||||
struct wlr_pointer *pointer, enum wlr_axis_source source);
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
#include "config.h"
|
||||
|
||||
#if HAS_XCB_ERRORS
|
||||
#if HAVE_XCB_ERRORS
|
||||
#include <xcb/xcb_errors.h>
|
||||
#endif
|
||||
|
||||
|
|
@ -99,7 +99,7 @@ struct wlr_x11_backend {
|
|||
// The time we last received an event
|
||||
xcb_timestamp_t time;
|
||||
|
||||
#if HAS_XCB_ERRORS
|
||||
#if HAVE_XCB_ERRORS
|
||||
xcb_errors_context_t *errors_context;
|
||||
#endif
|
||||
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ install_subdir('wlr',
|
|||
)
|
||||
|
||||
foreach name, have : internal_features
|
||||
internal_config.set10('HAS_' + name.underscorify().to_upper(), have)
|
||||
internal_config.set10('HAVE_' + name.underscorify().to_upper(), have)
|
||||
endforeach
|
||||
wlr_files += configure_file(
|
||||
output: 'config.h',
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
#include "config.h"
|
||||
#include "xwayland/selection.h"
|
||||
|
||||
#if HAS_XCB_ERRORS
|
||||
#if HAVE_XCB_ERRORS
|
||||
#include <xcb/xcb_errors.h>
|
||||
#endif
|
||||
|
||||
|
|
@ -126,7 +126,7 @@ struct wlr_xwm {
|
|||
const xcb_query_extension_reply_t *xfixes;
|
||||
const xcb_query_extension_reply_t *xres;
|
||||
uint32_t xfixes_major_version;
|
||||
#if HAS_XCB_ERRORS
|
||||
#if HAVE_XCB_ERRORS
|
||||
xcb_errors_context_t *errors_context;
|
||||
#endif
|
||||
unsigned int last_focus_seq;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue