Hello,
I noticed that even if I want to make a strict C project, when I insert a new file and make it a header, it defines it as a C++ header. Whenever I add files, if it doesn't know which language, it defaults to C++. Is it possible to change this behavior to make it default to C? If not, could an option to do so be added? It is annoying to always have to go to the file properties and change the compiler variable from CPP to CC. At some point, I thought I messed up something as it would allow me to use namespaces in a .c file. =P
What I'd prefer is to let the compiler decide how to compile the file according to its extension, and if I want to define a different behavior, then I can define this special compiler variable.
If I rename a .cpp file to a .c file, it still considers it C++. Which could be okay, but I believe it would be logical to care about the file extension and use the compiler variable for exceptions.
Thanks.
-- Wolf --