From de341bc1cd4e0981fa835d3fc8d7c2f32779d43a Mon Sep 17 00:00:00 2001 From: GrayJack Date: Wed, 18 Feb 2026 05:47:28 -0300 Subject: [PATCH] fix(amctrl): Remove unneeded `#ifdef` --- src/kernel/pspamctrl.h | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/kernel/pspamctrl.h b/src/kernel/pspamctrl.h index 8cdccc5142..d98b9ddfb7 100644 --- a/src/kernel/pspamctrl.h +++ b/src/kernel/pspamctrl.h @@ -15,11 +15,6 @@ #include -#ifdef __cplusplus -extern "C" { -#endif // __cplusplus - - typedef struct SceMacKey { int type; u8 key[16]; @@ -55,7 +50,9 @@ enum SceCipherKeyMode { CIPHER_KEY_MODE_DECRYPT = 2, }; -#ifdef __KERNEL__ +#ifdef __cplusplus +extern "C" { +#endif // __cplusplus int sceDrmBBMacInit(SceMacKey *mac_key, int type); int sceDrmBBMacUpdate(SceMacKey *mac_key, u8 *buf, int size); @@ -68,8 +65,6 @@ int sceDrmBBCipherUpdate(SceCipherKey *cipher_key, u8 *buf, int size); int sceAmctrl_driver_E04ADD4C(SceCipherKey *cipher_key, u8 *buf, int size); int sceDrmBBCipherFinal(SceCipherKey *cipher_key); -#endif // __KERNEL__ - #ifdef __cplusplus } #endif // __cplusplus