]> gcc.gnu.org Git - gcc.git/commit
libstdc++: Add preprocessor checks to <experimental/internet> [PR100285]
authorJonathan Wakely <jwakely@redhat.com>
Fri, 9 Jun 2023 11:15:21 +0000 (12:15 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Tue, 11 Jun 2024 12:35:08 +0000 (13:35 +0100)
commit3494bc7b03997f96e84e84f6904917854466d5ea
tree395cb741539ff0a7310e91fd63c431d4428ca34a
parent874896659df65b4bdf85b3dbca0ab527bb4c920e
libstdc++: Add preprocessor checks to <experimental/internet> [PR100285]

We can't define endpoints and resolvers without the relevant OS support.
If IPPROTO_TCP and IPPROTO_UDP are both undefined then we won't need
basic_endpoint and basic_resolver anyway, so make them depend on those
macros.

libstdc++-v3/ChangeLog:

PR libstdc++/100285
* include/experimental/internet [IPPROTO_TCP || IPPROTO_UDP]
(basic_endpoint, basic_resolver_entry, resolver_base)
(basic_resolver_results, basic_resolver): Only define if the tcp
or udp protocols will be defined.

(cherry picked from commit 793ed718b522b15e2d758eca953feeec1979fe2c)
libstdc++-v3/include/experimental/internet
This page took 0.057838 seconds and 6 git commands to generate.