Страхиња Радић 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
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.
My testing has shown that when -std=c99 is specified, it is as if that switch
explicitly undefines _DEFAULT_SOURCE/_XOP
On 27/09/2023 17:10, Страхиња Радић wrote:
On 23/09/27 03:50PM, Arthur Jacquin wrote:
termbox2.h is not C99 compliant, yet the -std=c99 compilation flag is
set in the default configuration. On the compilers I tried, it has not
been a problem as the non-C99 parts were ignored, but I shouldn't h
Hello Dan,
Dan wrote:
termbox2.h:2209:22: error: storage size of ‘sa’ isn’t known
termbox2.h:2345:46: error: ‘struct sigaction’ has no member named ‘sa_handler’
termbox2.h:2345:44: error: invalid use of undefined type ‘struct sigaction’
Seems like termbox2.h expects something in your headers th
On 23/09/27 03:50PM, Arthur Jacquin wrote:
> termbox2.h is not C99 compliant, yet the -std=c99 compilation flag is
> set in the default configuration. On the compilers I tried, it has not
> been a problem as the non-C99 parts were ignored, but I shouldn't have
> assumed it would always be this way.
Hi Arthur, I tried to build your project, but it failed for me:
termbox2.h:2209:22: error: storage size of 'sa' isn't known
termbox2.h:2345:46: error: 'struct sigaction' has no member named
'sa_handler'
termbox2.h:2345:44: error: invalid use of undefined type 'struct
sigaction'
All the best,
Hi Arthur, I tried to build your project, but it failed for me:
termbox2.h:2209:22: error: storage size of ‘sa’ isn’t known
termbox2.h:2345:46: error: ‘struct sigaction’ has no member named ‘sa_handler’
termbox2.h:2345:44: error: invalid use of undefined type ‘struct sigaction’
All the best,
Dan
Hello suckless developers,
This is my first time here, I hope I'm doing everything correctly :)
There is a bit of a story leading to this post. About a year ago, I
discovered the kakoune text editor. At that time I was a pretty happy
vim user, but kakoune arguments for its reversed grammar[0] re