gHub-GUI icon indicating copy to clipboard operation
gHub-GUI copied to clipboard

C23 has 'bool' as a keyword, and I feel like stdbool should be prefer…

Open FuwwyCodingCOwO opened this issue 5 months ago • 2 comments

I have replaced miscellaneous.h with stdbool.h, and tried my best to also replace TRUE/FALSE with true/false respectively. Also, considering CC = gcc, this should be reasonable considering stdbool.h should already be there anyway (located at /usr/lib/gcc/x86_64-pc-linux-gnu/<VERSION>/include, at least on my system)

miscellaneous.h:6:13: error: ‘bool’ cannot be defined via ‘typedef’
    6 | typedef int bool;
      |             ^~~~
miscellaneous.h:6:13: note: ‘bool’ is a keyword with ‘-std=c23’ onwards

FuwwyCodingCOwO avatar Jul 26 '25 07:07 FuwwyCodingCOwO

rip: Device id=0xc08b, name=G502 Hero - is not supported yet!

FuwwyCodingCOwO avatar Jul 26 '25 07:07 FuwwyCodingCOwO

I'll look into it, but I need sleep first

FuwwyCodingCOwO avatar Jul 26 '25 07:07 FuwwyCodingCOwO