From 4f8941c1a5f1ef6caa410feeb52e343db22763ce Mon Sep 17 00:00:00 2001 From: dundargoc Date: Fri, 10 Nov 2023 12:23:42 +0100 Subject: refactor: replace manual header guards with #pragma once It is less error-prone than manually defining header guards. Pretty much all compilers support it even if it's not part of the C standard. --- src/nvim/lib/queue.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/nvim/lib/queue.h') diff --git a/src/nvim/lib/queue.h b/src/nvim/lib/queue.h index c6d3f74ec1..40769e44b5 100644 --- a/src/nvim/lib/queue.h +++ b/src/nvim/lib/queue.h @@ -17,8 +17,7 @@ // ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF // OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -#ifndef NVIM_LIB_QUEUE_H -#define NVIM_LIB_QUEUE_H +#pragma once #include @@ -91,5 +90,3 @@ static inline void QUEUE_REMOVE(QUEUE *const q) FUNC_ATTR_ALWAYS_INLINE q->prev->next = q->next; q->next->prev = q->prev; } - -#endif // NVIM_LIB_QUEUE_H -- cgit