diff --git a/README/ReleaseNotes/v642/index.md b/README/ReleaseNotes/v642/index.md index 61c80c9c5b822..6d173068f81c8 100644 --- a/README/ReleaseNotes/v642/index.md +++ b/README/ReleaseNotes/v642/index.md @@ -77,6 +77,7 @@ The `TMVA_SOFIE_GNN` tutorials have been migrated to this workflow and produce i * The header `GLConstants.h` is no longer part of ROOT installed headers. * The header `PosixThreadInc.h` is deprecated and will be removed after ROOT 6.44. Use instead `` and ``. * The header `RStringView.h` deprecated in ROOT 6.14 will now emit warnings and will be fully removed after ROOT 6.44. Use `ROOT/RStringView.hxx` instead. +* The header `NetErrors.h` is an implementation detail, is deprecated and will be removed in ROOT 6.44. Use instead `TSocket` public interface. * The header `snprintf.h` is deprecated (will emit warnings) and will be removed in ROOT 6.44. Use instead ``. * The header `Strlen.h` is deprecated and will be removed in ROOT 6.44. Use `` directly as a replacement. `NEED_STRING` macro should not be defined or an error will be raised. * The header `Varargs.h` and the macro `R__VA_COPY` are deprecated and will be removed in ROOT 6.46, use `` instead. diff --git a/net/net/inc/NetErrors.h b/net/net/inc/NetErrors.h index 3426b5ea12f79..526cad67f8f32 100644 --- a/net/net/inc/NetErrors.h +++ b/net/net/inc/NetErrors.h @@ -13,6 +13,10 @@ #define ROOT_NetErrors +#if !defined(ROOT_NetErrors_cxx) && !defined(G__DICTIONARY) +#warning "This header is deprecated and will be removed from the public interface in ROOT 6.44. Use instead TSocket public interface." +#endif + ////////////////////////////////////////////////////////////////////////// // // // NetErrors // diff --git a/net/net/src/NetErrors.cxx b/net/net/src/NetErrors.cxx index a356a38a22272..85460bca3edc2 100644 --- a/net/net/src/NetErrors.cxx +++ b/net/net/src/NetErrors.cxx @@ -18,6 +18,7 @@ // // ////////////////////////////////////////////////////////////////////////// +#define ROOT_NetErrors_cxx #include "NetErrors.h" // Must match order of ERootdErrors enum in NetErrors.h diff --git a/net/net/src/TSocket.cxx b/net/net/src/TSocket.cxx index 8947ae1de0a38..c75255f6375de 100644 --- a/net/net/src/TSocket.cxx +++ b/net/net/src/TSocket.cxx @@ -23,6 +23,7 @@ TUnixSystem or TWinNTSystem). #include "Bytes.h" #include "Compression.h" +#define ROOT_NetErrors_cxx #include "NetErrors.h" #include "TError.h" #include "TMessage.h" diff --git a/net/net/src/TUDPSocket.cxx b/net/net/src/TUDPSocket.cxx index 2611494f79dd7..7bf568d7da90b 100644 --- a/net/net/src/TUDPSocket.cxx +++ b/net/net/src/TUDPSocket.cxx @@ -22,6 +22,7 @@ TUnixSystem or TWinNTSystem). #include "Bytes.h" #include "Compression.h" +#define ROOT_NetErrors_cxx #include "NetErrors.h" #include "TError.h" #include "TMessage.h"