Skip to content

Is there a specific reason to undef HOST_NOT_FOUND? #94

Closed

Description

@MrJia1997

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

Activity

  1. chronoxor commented on Nov 22, 2023

    @chronoxor
    Owner

    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

  2. chronoxor commented on Nov 22, 2023

    @chronoxor
    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

  3. MrJia1997 commented on Nov 22, 2023

    @MrJia1997
    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.

  4. chronoxor commented on Nov 22, 2023

    @chronoxor
    Owner

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

  5. chronoxor commented on Nov 22, 2023

    @chronoxor
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions