Thanks for submitting a pull request! Please provide enough information so that others can review your pull request. Additionally, make sure you've done all of these things:
[x] I've formatted my code according to Natron's code style
[x] I've searched the pull requests tracker to ensure that this PR is not a duplicate
PR Description
What type of PR is this? (Check one of the boxes below)
[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[x] Improvement (non-breaking change which does not add functionality nor fixes a bug but improves Natron in some way)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] My change requires a change to the documentation
[ ] I have updated the documentation accordingly
What does this pull request do?
This change fixes the tons of compiler warnings caused by using "defined" in the COMPILER() and COMPILER_XX() macros. I simply removed the defined expression since it isn't necessary. If the preprocessor macro is not defined, it is given a value of 0 which will return the same result as the (defined(X) && (X)) expressions used in these macros.
Thanks for submitting a pull request! Please provide enough information so that others can review your pull request. Additionally, make sure you've done all of these things:
PR Description
What type of PR is this? (Check one of the boxes below)
What does this pull request do?
This change fixes the tons of compiler warnings caused by using "defined" in the COMPILER() and COMPILER_XX() macros. I simply removed the defined expression since it isn't necessary. If the preprocessor macro is not defined, it is given a value of 0 which will return the same result as the (defined(X) && (X)) expressions used in these macros.
https://stackoverflow.com/questions/5085392/what-is-the-value-of-an-undefined-constant-used-in-if
Have you tested your changes (if applicable)? If so, how?
Yes. Built the code on Windows and Linux and didn't notice any change in behavior other than a lot less compiler warning messages. ;)