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

build: prefer USE_IPV6 macro internally (was: ENABLE_IPV6) #13349

Closed
wants to merge 2 commits into from

Conversation

vszakats
Copy link
Member

@vszakats vszakats commented Apr 11, 2024

Before this patch, two macros were used to guard IPv6 features in curl
sources: ENABLE_IPV6 and USE_IPV6. This patch makes the source use
the latter for consistency with other similar switches.

-DENABLE_IPV6 remains accepted for compatibility as a synonym for
-DUSE_IPV6, when passed to the compiler.

ENABLE_IPV6 also remains the name of the CMake and Makefile.vc
options to control this feature.

Closes #13349


Ideally I would prefer to switch over all uses in C from ENABLE_IPV6 to
USE_IPV6, which fits the naming used for all other public feature macros.

Then leave ENABLE_IPV6 as a compatibility macro that merely sets
USE_IPV6. Thoughts?

@github-actions github-actions bot added the Windows Windows-specific label Apr 11, 2024
@bagder
Copy link
Member

bagder commented Apr 11, 2024

Ideally I would prefer to switch over all uses in C from ENABLE_IPV6 to USE_IPV6, which fits the naming used for all other public feature macros.

Gets a 👍 from me!

@github-actions github-actions bot added the tests label Apr 11, 2024
@vszakats vszakats changed the title build: prefer ENABLE_IPV6 macro in MSVC builds build: prefer USE_IPV6 macro name internally (was: ENABLE_IPV6) Apr 11, 2024
@vszakats vszakats changed the title build: prefer USE_IPV6 macro name internally (was: ENABLE_IPV6) build: prefer USE_IPV6 macro internally (was: ENABLE_IPV6) Apr 11, 2024
@vszakats vszakats removed the Windows Windows-specific label Apr 11, 2024
@vszakats vszakats closed this in e411c98 Apr 13, 2024
@vszakats vszakats deleted the ipv6-macro-merge branch April 13, 2024 08:35
vszakats added a commit to vszakats/curl that referenced this pull request Apr 13, 2024
vszakats added a commit to vszakats/curl that referenced this pull request Apr 13, 2024
It looks like the OpenVMS script `config_h.com` is parsing the
config header generated by autotools. Let's make it look for
the macro name we now universally use across the codebase.

Follow-up to e411c98 curl#13349
Closes #xxxxx
vszakats added a commit that referenced this pull request Apr 16, 2024
The OpenVMS script `config_h.com` is parsing the config header
generated by autotools. Let's make it look for the macro name we now
use universally across the codebase.

Follow-up to e411c98 #13349
Closes #13360
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

2 participants