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