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/signal.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/nvim/os/signal.h') diff --git a/src/nvim/os/signal.h b/src/nvim/os/signal.h index 5d8cc6f661..83a0a9c91b 100644 --- a/src/nvim/os/signal.h +++ b/src/nvim/os/signal.h @@ -1,7 +1,5 @@ -#ifndef NVIM_OS_SIGNAL_H -#define NVIM_OS_SIGNAL_H +#pragma once #ifdef INCLUDE_GENERATED_DECLARATIONS # include "os/signal.h.generated.h" #endif -#endif // NVIM_OS_SIGNAL_H -- cgit