Skip to content

FinceptTerminal is a modern finance application offering advanced market analytics, investment research, and economic data tools, designed for interactive exploration and data-driven decision-making in a user-friendly environment.

Merge branch 'main' of https://github.com/Fincept-Corporation/FinceptTerminal

tilakpatel22fec23dc78c93
diff --cc fincept-qt/src/core/net/NetSpeedMeter.cpp
index 11a920fb2,003236f61..af9ed9119
--- a/fincept-qt/src/core/net/NetSpeedMeter.cpp
+++ b/fincept-qt/src/core/net/NetSpeedMeter.cpp
@@@ -6,10 -6,14 +6,15 @@@
#include <QDateTime>
#if defined(Q_OS_WIN)
--// The project defines WIN32_LEAN_AND_MEAN globally, which strips winsock from
- // <windows.h>. iphlpapi/netioapi need the base Windows + winsock2 types
- // already declared (SDK 26100+ headers are not self-sufficient), so the
- // order below is mandatory: winsock2 → windows → iphlpapi → netioapi.
+ // <windows.h>. Pull the pieces we need explicitly in the right order: the base
+ // winsock2 + windows types MUST be defined before iphlpapi.h / netioapi.h are
-// parsed, otherwise MIB_IF_ROW2 / GetIfTable2 drag in ifdef.h / netioapi.h with
-// DWORD / BOOL / SOCKADDR still undefined → C2146 / C3646 cascade.
++// parsed (SDK 26100+ headers are not self-sufficient), otherwise MIB_IF_ROW2 /
++// GetIfTable2 drag in ifdef.h / netioapi.h with DWORD / BOOL / SOCKADDR still
++// undefined → C2146 / C3646 cascade. Mandatory order below:
++// winsock2 → windows → iphlpapi → netioapi.
+ # ifndef _WINSOCKAPI_
+ # define _WINSOCKAPI_ // prevent windows.h from including winsock1
+ # endif
# include <winsock2.h>
# include <ws2tcpip.h>
# include <windows.h>