system-hacks: define __GNUC__ for FreeBSD
commit6fbcc14a5d39ca91228f88a64d68a1f3c2d67293
authorMichael Matz <matz@suse.de>
Sun, 16 Oct 2016 23:08:29 +0000 (17 01:08 +0200)
committerMichael Matz <matz@suse.de>
Sun, 16 Oct 2016 23:08:29 +0000 (17 01:08 +0200)
treed1b7e8bfda137baeb4a6909f8663617176b9fa19
parent68a7af632c334c1bb589d2b8f4257874377e30f6
system-hacks: define __GNUC__ for FreeBSD

FreeBSDs system headers contain unconditional usage of
macros like __aligned(x), which are only conditionally defined
in sys/cdefs.h (conditional on __GNUC__ or __INTEL_COMPILER).

Bug in FreeBSD, but as work-around we can define __GNUC__ which
picks up these defs.

[This also moves back the glibc defines we had before into the
non-BSD ifdef branch]
libtcc.c