Skip to content

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

Closed
vszakats wants to merge 2 commits into
curl:masterfrom
vszakats:ipv6-macro-merge
Closed

build: prefer USE_IPV6 macro internally (was: ENABLE_IPV6)#13349
vszakats wants to merge 2 commits into
curl:masterfrom
vszakats:ipv6-macro-merge

Conversation

@vszakats

@vszakats vszakats commented Apr 11, 2024

Copy link
Copy Markdown
Member

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

bagder commented Apr 11, 2024

Copy link
Copy Markdown
Member

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

2 participants