From 744cf3ec4c3b757714225ae4058fec13e30f86e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Deuc=D0=B5?= <shurd@sasktel.net> Date: Thu, 23 Jan 2025 16:09:59 -0500 Subject: [PATCH] It appears MSVC doesn't support the 25-year-old standard restrict qualifier --- src/conio/bitmap_con.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/conio/bitmap_con.c b/src/conio/bitmap_con.c index 80a820ce39..7095e84d21 100644 --- a/src/conio/bitmap_con.c +++ b/src/conio/bitmap_con.c @@ -577,13 +577,13 @@ struct blockstate { }; static bool -can_cheat(struct blockstate *restrict bs, struct vmem_cell *restrict vc) +can_cheat(struct blockstate *bs, struct vmem_cell *vc) { return vc->bg == bs->cheat_colour && (vc->ch == ' ') && (vc->font < CONIO_FIRST_FREE_FONT) && !(vc->bg & 0x02000000); } static void -calc_charstate(struct blockstate *restrict bs, struct vmem_cell *restrict vc, struct charstate *restrict cs, int xpos, int ypos) +calc_charstate(struct blockstate *bs, struct vmem_cell *vc, struct charstate *cs, int xpos, int ypos) { bool not_hidden = true; cs->slow = bs->font_data_width != 8; -- GitLab