you're doing it wrong. Why should the compiler have to
guess at the language of a header file, unless you're trying
to compile that file directly (i.e. not via a #include
in another file)? The included file is compiled in the same
language as the including file. Therefore, it doesn't
matter if I use .h
as the extension or not, it only
matters where I include it from.
You seem to be blaming gcc for doing what it's meant to.