I've found these lines in the libmagic
code. What do they mean?
#ifdef __GNUC__
__attribute__((unused))
#endif
What does __GNUC__
mean?
It seems to check whether GCC is installed.
What is __attribute__((unused))
?
There's a code snippet here but no explanation: How do I best silence a warning about unused variables?
What is the difference between __GNUC__
and _MSC_VER
?
There's some explanation on _MSC_VER
, but what is it all about?
How to Detect if I'm Compiling Code with a particular Visual Studio version?
Finally the question:
How can I do the same #ifdef
to check which compiler is compiling my code?