From 095ef2947d858df7ccc9baa4806fe7366fca26bc Mon Sep 17 00:00:00 2001 From: cflip Date: Sun, 8 Jan 2023 14:57:40 -0700 Subject: Use C-style include guards instead of #pragma once --- editor.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'editor.h') diff --git a/editor.h b/editor.h index 578a91e..8b42b7f 100644 --- a/editor.h +++ b/editor.h @@ -1,4 +1,5 @@ -#pragma once +#ifndef _EDITOR_H +#define _EDITOR_H #include #include "buffer.h" @@ -33,3 +34,5 @@ void editor_scroll(struct editor_state* editor); void editor_draw_rows(struct editor_state* editor, struct append_buffer* buffer); void editor_draw_status_bar(struct editor_state* editor, struct append_buffer* buffer); void editor_draw_message_bar(struct editor_state* editor, struct append_buffer* buffer); + +#endif -- cgit v1.2.3