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/main.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/nvim/main.h') diff --git a/src/nvim/main.h b/src/nvim/main.h index 2d54837872..6aeb62712a 100644 --- a/src/nvim/main.h +++ b/src/nvim/main.h @@ -1,5 +1,4 @@ -#ifndef NVIM_MAIN_H -#define NVIM_MAIN_H +#pragma once #include @@ -51,4 +50,3 @@ typedef struct { #ifdef INCLUDE_GENERATED_DECLARATIONS # include "main.h.generated.h" #endif -#endif // NVIM_MAIN_H -- cgit