Skip to content

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

Open
FuwwyCodingCOwO wants to merge 1 commit intoysph:masterfrom
FuwwyCodingCOwO:bug-fix
Open

C23 has 'bool' as a keyword, and I feel like stdbool should be prefer…#26
FuwwyCodingCOwO wants to merge 1 commit intoysph:masterfrom
FuwwyCodingCOwO:bug-fix

Conversation

@FuwwyCodingCOwO
Copy link

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
Copy link
Author

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

@FuwwyCodingCOwO
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant