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

Enumeration conflicts with Windows header files #258

Closed
xoxoooooo opened this issue Nov 26, 2021 · 3 comments
Closed

Enumeration conflicts with Windows header files #258

xoxoooooo opened this issue Nov 26, 2021 · 3 comments

Comments

@xoxoooooo
Copy link

Source File ==> Source\Core\PropertyParserAnimation.cpp

enum Type { NONE, TWEEN, ALL, ALTERNATE, INFINITE, PAUSED } type;

ALTERNATE, INFINITE ==> These two values conflict with the windows header

This is my solution:

#ifdef ALTERNATE
#undef ALTERNATE
#endif
#ifdef INFINITE
#undef INFINITE
#endif

If you are sure that this is a problem, you can add it to your source code.

English is not good, from machine translation, I wish you a happy life.

@mikke89
Copy link
Owner

mikke89 commented Nov 27, 2021

Hi. Thanks for reporting.

These enum declarations are in a private source file, what I don't understand is how your windows headers are finding their way into this source file? Things are bound to go wrong when including the windows header into all source files like that.

With that said, I'm all okay with changing these enum names, I'll go ahead and do that.

@xoxoooooo
Copy link
Author

The reason I think is because my project depends on 'libressl' and I integrated this library into my build space. The header file include path of the library'libressl' has replaced some standard header files, and the replaced files include "Windows.h", which caused this error.
Thank you for your time and greetings.

@mikke89
Copy link
Owner

mikke89 commented Nov 28, 2021

Alright, I hope the last commit solved the issue for you, cheers.

@mikke89 mikke89 closed this as completed Nov 28, 2021
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

No branches or pull requests

2 participants