Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed GCC version test. #775

Closed
wants to merge 2 commits into from
Closed

Fixed GCC version test. #775

wants to merge 2 commits into from

Conversation

Remotion
Copy link
Contributor

@Remotion Remotion commented Jun 9, 2018

Here is clear PR for this #771.

Copy link
Contributor

@vitaut vitaut left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR. Same comment as in #771 that this should use FMT_GCC_VERSION instead of __GNUC__.

#if (defined(__GNUC__) && !defined(__clang__) && __GNUC__ >= 406) || \
#include "core.h"

#if (defined(__GNUC__) && !defined(__clang__) && FMT_GCC_VERSION >= 406) || \
Copy link
Contributor

@eliaskosunen eliaskosunen Jun 10, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You only need to check FMT_GCC_VERSION since it has a greater-than-zero value iff defined(__GNUC__) && !defined(__clang__) is true

Using FMT_GCC_VERSION from core.h to test GCC version.
@Remotion
Copy link
Contributor Author

Is this Ok now ?

@vitaut
Copy link
Contributor

vitaut commented Jun 10, 2018

Merged in 47268ec, thanks!

@vitaut vitaut closed this Jun 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants