mirror of
https://github.com/XRPLF/rippled.git
synced 2026-07-29 10:00:30 +00:00
fix(telemetry): fix Windows WinSock.h header ordering in MetricsRegistry test
Pre-include boost/asio/detail/socket_types.hpp on Windows before OTel SDK headers to ensure WinSock2.h is included before WinSock.h. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -11,6 +11,13 @@
|
||||
unconditionally.
|
||||
*/
|
||||
|
||||
// On Windows, WinSock2.h must be included before WinSock.h. OTel SDK
|
||||
// headers transitively pull in WinSock.h, so we pre-include Boost.Asio's
|
||||
// socket header to establish the correct ordering.
|
||||
#ifdef _WIN32
|
||||
#include <boost/asio/detail/socket_types.hpp>
|
||||
#endif
|
||||
|
||||
#include <xrpld/telemetry/MetricsRegistry.h>
|
||||
|
||||
#include <xrpl/beast/unit_test.h>
|
||||
|
||||
Reference in New Issue
Block a user