Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Projects fail to build with C23 #301

Closed
PatchMixolydic opened this issue Nov 22, 2023 · 1 comment
Closed

Projects fail to build with C23 #301

PatchMixolydic opened this issue Nov 22, 2023 · 1 comment

Comments

@PatchMixolydic
Copy link

PatchMixolydic commented Nov 22, 2023

Trying to build a simple project with EXTRA_FLAGS=-std=c2x make -f $GDK/makefile.gen yields the following:

In file included from /home/patchmixolydic/mars/m68k-elf/inc/genesis.h:6,
                 from src/main.c:1:
/home/patchmixolydic/mars/m68k-elf/inc/types.h:113:12: error: two or more data types in declaration specifiers
  113 | typedef u8 bool;
      |            ^~~~
/home/patchmixolydic/mars/m68k-elf/inc/types.h:113:1: warning: useless type name in empty declaration
  113 | typedef u8 bool;
      | ^~~~~~~
make: *** [/home/patchmixolydic/mars/m68k-elf/makefile.gen:171: out/src/main.o] Error 1

This may be related to N2934, which introduced a bool keyword/predefined macro.

@Stephane-D
Copy link
Owner

Thanks for reporting, should be fixed !

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

No branches or pull requests

2 participants