Open ppenzin opened 3 years ago
I'll eventually define __GNUC__
macro, and I think that should fix this problem. I'm not doing it right now because it opens a can of warms. If you define __GNUC__
, the stdlib headers expect that your compiler supports all GCC extensions, such as various kinds of __attribute__
. So, I'll do that after the extensions are implemented.
Right, setting __GNUC __
yields this:
/usr/include/sys/cdefs.h:228: #define __aligned(x) __attribute__((__aligned__(x)))
^ expected ','
Edit: I've tried setting a breakpoint at the point where that error should be produced, but did not realize chibicc relaunches itself at first.
What do you use to write code? Is it a diary?
FreeBSD gives out this rather excluding message when including
stdio.h
:It is triggered by is this condition in
cdefs.h
not being met (and the guarded macros not getting set):