From b2566aef02400e42062303aac435a167e6d79b85 Mon Sep 17 00:00:00 2001 From: Wang Xiang Date: Thu, 6 Feb 2025 16:28:52 +0800 Subject: [PATCH 1/3] Remove redundant defines that cause compilation errors on LoongArch. --- Common/Net/SocketCompat.h | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/Common/Net/SocketCompat.h b/Common/Net/SocketCompat.h index 575815ecb5..151709c47e 100644 --- a/Common/Net/SocketCompat.h +++ b/Common/Net/SocketCompat.h @@ -118,20 +118,6 @@ inline bool connectInProgress(int errcode) { return (errcode == EAGAIN || errcod inline bool isDisconnected(int errcode) { return (errcode == EPIPE || errcode == ECONNRESET || errcode == ECONNABORTED || errcode == ESHUTDOWN); } #endif -#ifndef POLL_ERR -#define POLL_ERR 0x008 /* Error condition. */ -#endif -#ifndef POLLERR -#define POLLERR POLL_ERR -#endif - -#ifndef POLL_PRI -#define POLL_PRI 0x002 /* There is urgent data to read. */ -#endif -#ifndef POLLPRI -#define POLLPRI POLL_PRI -#endif - #ifndef SD_RECEIVE #define SD_RECEIVE SHUT_RD //0x00 #endif From 3eeaed68f2034a32f2b87bb7d5d98da2d74259ce Mon Sep 17 00:00:00 2001 From: Wang Xiang Date: Thu, 6 Feb 2025 16:32:31 +0800 Subject: [PATCH 2/3] Fix memcpy not declar error. --- Common/Math/SIMDHeaders.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Common/Math/SIMDHeaders.h b/Common/Math/SIMDHeaders.h index 82b18e558c..13c120e669 100644 --- a/Common/Math/SIMDHeaders.h +++ b/Common/Math/SIMDHeaders.h @@ -67,6 +67,10 @@ static inline uint32x4_t vcgezq_f32(float32x4_t v) { #endif +#if PPSSPP_ARCH(LOONGARCH64) +#include "string.h" +#endif + #if PPSSPP_ARCH(SSE2) #if defined __SSE4_2__ From 56bd3d8dc6e2da1db998ceb453609e1a794d72ed Mon Sep 17 00:00:00 2001 From: Wang Xiang Date: Fri, 7 Feb 2025 00:31:37 +0800 Subject: [PATCH 3/3] Include without ifdef --- Common/Math/SIMDHeaders.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Common/Math/SIMDHeaders.h b/Common/Math/SIMDHeaders.h index 13c120e669..790fac494e 100644 --- a/Common/Math/SIMDHeaders.h +++ b/Common/Math/SIMDHeaders.h @@ -10,6 +10,7 @@ #include "ppsspp_config.h" #include "stdint.h" +#include #ifdef __clang__ // Weird how you can't just use #pragma in a macro. @@ -67,10 +68,6 @@ static inline uint32x4_t vcgezq_f32(float32x4_t v) { #endif -#if PPSSPP_ARCH(LOONGARCH64) -#include "string.h" -#endif - #if PPSSPP_ARCH(SSE2) #if defined __SSE4_2__