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/dl.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/nvim/os/dl.h') diff --git a/src/nvim/os/dl.h b/src/nvim/os/dl.h index 302e4e6678..9c41a28f69 100644 --- a/src/nvim/os/dl.h +++ b/src/nvim/os/dl.h @@ -1,5 +1,4 @@ -#ifndef NVIM_OS_DL_H -#define NVIM_OS_DL_H +#pragma once #include #include @@ -7,4 +6,3 @@ #ifdef INCLUDE_GENERATED_DECLARATIONS # include "os/dl.h.generated.h" #endif -#endif // NVIM_OS_DL_H -- cgit From 574d25642fc9ca65b396633aeab6e2d32778b642 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Mon, 27 Nov 2023 17:21:58 +0800 Subject: refactor: move Arena and ArenaMem to memory_defs.h (#26240) --- src/nvim/os/dl.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/nvim/os/dl.h') diff --git a/src/nvim/os/dl.h b/src/nvim/os/dl.h index 9c41a28f69..0787c7fe46 100644 --- a/src/nvim/os/dl.h +++ b/src/nvim/os/dl.h @@ -1,8 +1,5 @@ #pragma once -#include -#include - #ifdef INCLUDE_GENERATED_DECLARATIONS # include "os/dl.h.generated.h" #endif -- cgit