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/event/libuv_process.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/nvim/event/libuv_process.h') diff --git a/src/nvim/event/libuv_process.h b/src/nvim/event/libuv_process.h index 4472839944..e3e2bfeb76 100644 --- a/src/nvim/event/libuv_process.h +++ b/src/nvim/event/libuv_process.h @@ -1,5 +1,4 @@ -#ifndef NVIM_EVENT_LIBUV_PROCESS_H -#define NVIM_EVENT_LIBUV_PROCESS_H +#pragma once #include @@ -24,4 +23,3 @@ static inline LibuvProcess libuv_process_init(Loop *loop, void *data) #ifdef INCLUDE_GENERATED_DECLARATIONS # include "event/libuv_process.h.generated.h" #endif -#endif // NVIM_EVENT_LIBUV_PROCESS_H -- cgit