From 9ec49695b7b31c869f078d452766cda1f11f9748 Mon Sep 17 00:00:00 2001 From: Princess-of-Sleeping Date: Sun, 22 Sep 2024 20:43:23 +0900 Subject: [PATCH] Removed backwards compatibility for power/paf --- include/psp2/paf/stdc.h | 20 -------------------- include/psp2common/power.h | 13 ------------- 2 files changed, 33 deletions(-) diff --git a/include/psp2/paf/stdc.h b/include/psp2/paf/stdc.h index 332614e404..03a34a681a 100644 --- a/include/psp2/paf/stdc.h +++ b/include/psp2/paf/stdc.h @@ -62,26 +62,6 @@ char *sce_paf_strrchr(const char *s, int ch); double sce_paf_strtod(const char *nptr, char **endptr); -#define sce_paf_private_bcmp(__ptr1__, __ptr2__, __num__) sce_paf_bcmp((__ptr1__), (__ptr2__), (__num__)) -#define sce_paf_private_bcopy(__dst__, __src__, __n__) sce_paf_bcopy((__dst__), (__src__), (__n__)) -#define sce_paf_private_bzero(__dst__, __n__) sce_paf_bzero((__dst__), (__n__)) -#define sce_paf_private_memchr(__src__, __ch__, __length__) sce_paf_memchr((__src__), (__ch__), (__length__)) -#define sce_paf_private_memcmp(__s1__, __s2__, __n__) sce_paf_memcmp((__s1__), (__s2__), (__n__)) -#define sce_paf_private_memcpy(__dst__, __src__, __len__) sce_paf_memcpy((__dst__), (__src__), (__len__)) -#define sce_paf_private_memmove(__dst__, __src__, __len__) sce_paf_memmove((__dst__), (__src__), (__len__)) -#define sce_paf_private_memset(__dst__, __ch__, __len__) sce_paf_memset((__dst__), (__ch__), (__len__)) -#define sce_paf_private_snprintf sce_paf_snprintf -#define sce_paf_private_vsnprintf(__dst__, __max__, __fmt__, __arg__) sce_paf_vsnprintf((__dst__), (__max__), (__fmt__), (__arg__)) -#define sce_paf_private_strchr(__s__, __ch__) sce_paf_strchr((__s__), (__ch__)) -#define sce_paf_private_strcmp(__s1__, __s2__) sce_paf_strcmp((__s1__), (__s2__)) -#define sce_paf_private_strlen(__s__) sce_paf_strlen((__s__)) -#define sce_paf_private_strcasecmp(__s1__, __s2__) sce_paf_strcasecmp((__s1__), (__s2__)) -#define sce_paf_private_strncasecmp(__s1__, __s2__, __len__) sce_paf_strncasecmp((__s1__), (__s2__), (__len__)) -#define sce_paf_private_strncmp(__s1__, __s2__, __len__) sce_paf_strncmp((__s1__), (__s2__), (__len__)) -#define sce_paf_private_strncpy(__dst__, __src__, __len__) sce_paf_strncpy((__dst__), (__src__), (__len__)) -#define sce_paf_private_strrchr(__s__, __ch__) sce_paf_strrchr((__s__), (__ch__)) - - #ifdef __cplusplus } #endif diff --git a/include/psp2common/power.h b/include/psp2common/power.h index 3bef4d1173..e1c9d1cae4 100644 --- a/include/psp2common/power.h +++ b/include/psp2common/power.h @@ -64,19 +64,6 @@ VITASDK_BUILD_ASSERT_EQ(4, ScePowerConfigurationMode); typedef void (*ScePowerCallback)(int notifyId, int notifyCount, int powerInfo, void* userData); -/* For backwards compatibility */ - -#ifdef _PSP2_POWER_H_ -#define SCE_POWER_CB_SUSPENDING (SCE_POWER_CB_APP_SUSPEND) -#define SCE_POWER_CB_RESUMING (SCE_POWER_CB_APP_RESUMING) -#endif - -#ifdef _PSP2KERN_POWER_H_ -#define SCE_POWER_CB_SUSPENDING (SCE_POWER_CB_SYSTEM_SUSPEND) -#define SCE_POWER_CB_RESUMING (SCE_POWER_CB_SYSTEM_RESUMING) -#endif - - #ifdef __cplusplus } #endif