Re: [dev] [edit] Introducing edit, a simple text editor

From: Adam Sampson <>
Date: Wed, 27 Sep 2023 22:06:40 +0100

Страхиња Радић <> writes:

> On closer inspection, termbox2.h does include signal.h itself[1], and
> additionally defines _XOPEN_SOURCE[2] and _DEFAULT_SOURCE, so the
> inclusion of signal.h can't be escaped.

I suspect the problem is that these kinds of macros need to be defined
before *any* of the glibc headers are included (see the
feature_test_macros man page). edit.c includes various other headers
before pulling in termbox2.h, by which time it's too late.

Adam Sampson <>                         <>
Received on Wed Sep 27 2023 - 23:06:40 CEST

This archive was generated by hypermail 2.3.0 : Thu Sep 28 2023 - 00:36:08 CEST