Skip to content
New issue

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

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

Already on GitHub? # to your account

Fix conflict between variable and macro name #458

Merged
merged 1 commit into from
Jan 30, 2022

Conversation

demiquartz
Copy link
Contributor

Fix conflict between variable and macro name when building on Msys2 / MinGW64.

The errors that occurred are:

libtins/src/ipv6.cpp:377:35: error: expected primary-expression before 'struct'
  377 |         link_addr.sin6_scope_id = interface.id();
      |                                   ^~~~~~~~~
ninja: build stopped: subcommand failed.

This change defines WIN32_LEAN_AND_MEAN and prevents interface macros from being defined.

@mfontanini mfontanini merged commit 3b006c1 into mfontanini:master Jan 30, 2022
@mfontanini
Copy link
Owner

Thanks and sorry for the delay!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants