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/os/fileio.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/nvim/os/fileio.h') diff --git a/src/nvim/os/fileio.h b/src/nvim/os/fileio.h index 5e47bbf921..72e7984c8a 100644 --- a/src/nvim/os/fileio.h +++ b/src/nvim/os/fileio.h @@ -1,5 +1,4 @@ -#ifndef NVIM_OS_FILEIO_H -#define NVIM_OS_FILEIO_H +#pragma once #include #include @@ -75,4 +74,3 @@ enum { #ifdef INCLUDE_GENERATED_DECLARATIONS # include "os/fileio.h.generated.h" #endif -#endif // NVIM_OS_FILEIO_H -- cgit