Skip to content

frotz compilation fails with gcc-15 due to C23 defining bool #521

@NHOrus

Description

@NHOrus

C99 defined bool macro optionally in stdbool.h. C23 made bool reserved keyword.

Use stdbool.h instead of

#ifndef __UNIX_PORT_FILE
#include <signal.h>
typedef int bool;
#ifndef TRUE
#define TRUE 1
#endif
#ifndef FALSE
#define FALSE 0
#endif

upstream fortz fixes it in https://gitlab.com/DavidGriffith/frotz/-/commit/dc6b7a7413a753e4b1583094a94a17590d393152

see also: gentoo bug https://bugs.gentoo.org/969771
see https://wiki.gentoo.org/wiki/Modern_C_porting#bool for causes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions