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 --- terminal.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'terminal.h') diff --git a/terminal.h b/terminal.h index 529ba74..1df7ea7 100644 --- a/terminal.h +++ b/terminal.h @@ -1,7 +1,10 @@ -#pragma once +#ifndef _TERMINAL_H +#define _TERMINAL_H void die(const char* message); void disable_raw_mode(); void enable_raw_mode(); int get_cursor_position(int* rows, int* cols); int get_window_size(int* rows, int* cols); + +#endif -- cgit v1.2.3