From 8d2251749da9e0ae4254502edfc8917236a9b8c0 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 26 Dec 2020 17:44:23 +0100 Subject: Make include guards surround all header contents For consistency, and because clang-tidy can't figure out if a define is an include guard unless it ends the file. --- lv2/event/event-helpers.h | 6 +++--- lv2/event/event.h | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'lv2/event') diff --git a/lv2/event/event-helpers.h b/lv2/event/event-helpers.h index ca3abec..6b39235 100644 --- a/lv2/event/event-helpers.h +++ b/lv2/event/event-helpers.h @@ -14,14 +14,14 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +#ifndef LV2_EVENT_HELPERS_H +#define LV2_EVENT_HELPERS_H + /** @file event-helpers.h Helper functions for the LV2 Event extension . */ -#ifndef LV2_EVENT_HELPERS_H -#define LV2_EVENT_HELPERS_H - #include "lv2/core/attributes.h" #include "lv2/event/event.h" diff --git a/lv2/event/event.h b/lv2/event/event.h index 9a7fec4..ff91e3b 100644 --- a/lv2/event/event.h +++ b/lv2/event/event.h @@ -15,6 +15,9 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +#ifndef LV2_EVENT_H +#define LV2_EVENT_H + /** @defgroup event Event @ingroup lv2 @@ -26,9 +29,6 @@ @{ */ -#ifndef LV2_EVENT_H -#define LV2_EVENT_H - // clang-format off #define LV2_EVENT_URI "http://lv2plug.in/ns/ext/event" ///< http://lv2plug.in/ns/ext/event @@ -302,8 +302,8 @@ LV2_RESTORE_WARNINGS } /* extern "C" */ #endif -#endif /* LV2_EVENT_H */ - /** @} */ + +#endif /* LV2_EVENT_H */ -- cgit v1.2.1