diff options
author | dundargoc <gocdundar@gmail.com> | 2023-11-10 12:23:42 +0100 |
---|---|---|
committer | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2023-11-12 22:01:28 +0100 |
commit | 4f8941c1a5f1ef6caa410feeb52e343db22763ce (patch) | |
tree | 6e801079d088533198d526cb9aac8eb7981dc568 /src/nvim/diff.h | |
parent | 353a4be7e84fdc101318215bdcc8a7e780d737fe (diff) | |
download | rneovim-4f8941c1a5f1ef6caa410feeb52e343db22763ce.tar.gz rneovim-4f8941c1a5f1ef6caa410feeb52e343db22763ce.tar.bz2 rneovim-4f8941c1a5f1ef6caa410feeb52e343db22763ce.zip |
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.
Diffstat (limited to 'src/nvim/diff.h')
-rw-r--r-- | src/nvim/diff.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/nvim/diff.h b/src/nvim/diff.h index eda0fac5cb..a9c80333ec 100644 --- a/src/nvim/diff.h +++ b/src/nvim/diff.h @@ -1,5 +1,4 @@ -#ifndef NVIM_DIFF_H -#define NVIM_DIFF_H +#pragma once #include <stdbool.h> @@ -17,4 +16,3 @@ EXTERN bool need_diff_redraw INIT( = false); // need to call diff_redraw() #ifdef INCLUDE_GENERATED_DECLARATIONS # include "diff.h.generated.h" #endif -#endif // NVIM_DIFF_H |