fix: restore clang-format off guard and platform include order in piethernet.cpp

This commit is contained in:
2026-08-27 12:29:35 +03:00
parent c2e6a9927c
commit 74390a9678
+8 -7
View File
@@ -27,7 +27,7 @@
# include "pipropertystorage.h"
# include "pisysteminfo.h"
# include "pitranslator.h"
// clang-format off
# ifdef QNX
# include <arpa/inet.h>
# include <fcntl.h>
@@ -51,21 +51,21 @@
# else
# ifdef WINDOWS
# include <io.h>
# include <winsock2.h>
# include <iphlpapi.h>
# include <psapi.h>
# include <winsock2.h>
# include <ws2tcpip.h>
# define ip_mreqn ip_mreq
# define imr_address imr_interface
# else
# include <arpa/inet.h>
# include <fcntl.h>
# include <net/if.h>
# include <netdb.h>
# include <sys/ioctl.h>
# include <netinet/in.h>
# include <netinet/tcp.h>
# include <sys/ioctl.h>
# include <arpa/inet.h>
# include <sys/socket.h>
# include <netdb.h>
# include <net/if.h>
# if !defined(ANDROID) && !defined(LWIP)
# include <ifaddrs.h>
# endif
@@ -74,6 +74,7 @@
# endif
# endif
# endif
// clang-format on
# include "piwaitevent_p.h"
# include <errno.h>
@@ -391,7 +392,7 @@ void PIEthernet::applyBuffers() {
void PIEthernet::applyTimeout(int fd, int opt, PISystemTime tm) {
if (fd == 0) return;
// piCoutObj << "setReadIsBlocking" << yes;
// piCoutObj << "setReadIsBlocking" << yes;
# ifdef WINDOWS
DWORD _tm = tm.toMilliseconds();
# else