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

Is there a specific reason to undef HOST_NOT_FOUND? #94

Closed
MrJia1997 opened this issue Nov 22, 2023 · 5 comments
Closed

Is there a specific reason to undef HOST_NOT_FOUND? #94

MrJia1997 opened this issue Nov 22, 2023 · 5 comments

Comments

@MrJia1997
Copy link

Just wonder. Is there a specific reason to undef HOST_NOT_FOUND? What's the problem if it's still defined?

#undef HOST_NOT_FOUND

@chronoxor
Copy link
Owner

chronoxor commented Nov 22, 2023

Quick answer - we have HOST_NOT_FOUND duplicate in one of our projects and we want a quick solution for this issue 😊(https://emojipedia.org/smiling-face-with-smiling-eyes)
image

@chronoxor
Copy link
Owner

But other definitions from Winapi.h must be undefined anyway, because they are duplicates even with std libraries (e.g. std::min, std::max):

#undef DELETE
#undef ERROR
#undef Yield
#undef min
#undef max
#undef uuid_t

@MrJia1997
Copy link
Author

Thank you for your prompt response! The reason why I ask this is that HOST_NOT_FOUND is also used in netdb.h on Linux, and undefine it will cause some other libraries to not work, e.g., Asio.

@chronoxor
Copy link
Owner

Probably I'll remove it soon. Thanks for pointing on this!

@chronoxor
Copy link
Owner

Fixed in FBE 1.14.5.0

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