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/atom/forge.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'lv2/atom/forge.h') diff --git a/lv2/atom/forge.h b/lv2/atom/forge.h index b87d12f..0920e0a 100644 --- a/lv2/atom/forge.h +++ b/lv2/atom/forge.h @@ -39,6 +39,9 @@ This header is non-normative, it is provided for convenience. */ +#ifndef LV2_ATOM_FORGE_H +#define LV2_ATOM_FORGE_H + /** @defgroup forge Forge @ingroup atom @@ -48,9 +51,6 @@ @{ */ -#ifndef LV2_ATOM_FORGE_H -#define LV2_ATOM_FORGE_H - #include "lv2/atom/atom.h" #include "lv2/atom/util.h" #include "lv2/core/attributes.h" @@ -687,15 +687,15 @@ lv2_atom_forge_beat_time(LV2_Atom_Forge* forge, double beats) return lv2_atom_forge_write(forge, &beats, sizeof(beats)); } -/** - @} - @} -*/ - LV2_RESTORE_WARNINGS #ifdef __cplusplus } /* extern "C" */ #endif +/** + @} + @} +*/ + #endif /* LV2_ATOM_FORGE_H */ -- cgit v1.2.1