diff --git a/common/GNUmakefile b/common/GNUmakefile index 786a2c17..02a2487a 100644 --- a/common/GNUmakefile +++ b/common/GNUmakefile @@ -52,7 +52,8 @@ override CFLAGS_FOR_TARGET += \ -fno-strict-aliasing \ -fno-lto \ -Wshadow \ - -Wvla + -Wvla \ + -Wno-deprecated-declarations override CPPFLAGS_FOR_TARGET := \ -I../freestanding-headers \ diff --git a/limine.h b/limine.h index 44e14c40..d7d6b108 100644 --- a/limine.h +++ b/limine.h @@ -191,25 +191,31 @@ struct limine_framebuffer_request { #define LIMINE_TERMINAL_OOB_OUTPUT_ONOCR (1 << 6) #define LIMINE_TERMINAL_OOB_OUTPUT_OPOST (1 << 7) -struct limine_terminal; +#ifdef __GNUC__ +# define LIMINE_DEPRECATED __attribute__((__deprecated__)) +#else +# define LIMINE_DEPRECATED +#endif + +struct LIMINE_DEPRECATED limine_terminal; typedef void (*limine_terminal_write)(struct limine_terminal *, const char *, uint64_t); typedef void (*limine_terminal_callback)(struct limine_terminal *, uint64_t, uint64_t, uint64_t, uint64_t); -struct limine_terminal { +struct LIMINE_DEPRECATED limine_terminal { uint64_t columns; uint64_t rows; LIMINE_PTR(struct limine_framebuffer *) framebuffer; }; -struct limine_terminal_response { +struct LIMINE_DEPRECATED limine_terminal_response { uint64_t revision; uint64_t terminal_count; LIMINE_PTR(struct limine_terminal **) terminals; LIMINE_PTR(limine_terminal_write) write; }; -struct limine_terminal_request { +struct LIMINE_DEPRECATED limine_terminal_request { uint64_t id[4]; uint64_t revision; LIMINE_PTR(struct limine_terminal_response *) response;