1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-12 14:14:48 +02:00

core: use <stdbool.h> instead of typedef in ncurses-fake.h

Fixes the following error when building in Fedora rawhide:
error: ‘bool’ cannot be defined via ‘typedef’.

Likely GCC 15 related.
This commit is contained in:
LuK1337
2025-01-22 23:26:22 +01:00
committed by Sébastien Helleu
parent c1ca6c4002
commit 34c79971fc
+1 -1
View File
@@ -20,6 +20,7 @@
#ifndef WEECHAT_NCURSES_FAKE_H
#define WEECHAT_NCURSES_FAKE_H
#include <stdbool.h>
#include <stddef.h>
#define ERR (-1)
@@ -71,7 +72,6 @@ struct _window
};
typedef struct _window WINDOW;
typedef unsigned char bool;
typedef int attr_t;
typedef unsigned chtype;