Skip to content

Commit f4677d9

Browse files
GrayJacksharkwouter
authored andcommitted
fix(amctrl): Remove unneeded #ifdef
1 parent 746bad5 commit f4677d9

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

src/kernel/pspamctrl.h

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,6 @@
1515

1616
#include <psptypes.h>
1717

18-
#ifdef __cplusplus
19-
extern "C" {
20-
#endif // __cplusplus
21-
22-
2318
typedef struct SceMacKey {
2419
int type;
2520
u8 key[16];
@@ -55,7 +50,9 @@ enum SceCipherKeyMode {
5550
CIPHER_KEY_MODE_DECRYPT = 2,
5651
};
5752

58-
#ifdef __KERNEL__
53+
#ifdef __cplusplus
54+
extern "C" {
55+
#endif // __cplusplus
5956

6057
int sceDrmBBMacInit(SceMacKey *mac_key, int type);
6158
int sceDrmBBMacUpdate(SceMacKey *mac_key, u8 *buf, int size);
@@ -68,8 +65,6 @@ int sceDrmBBCipherUpdate(SceCipherKey *cipher_key, u8 *buf, int size);
6865
int sceAmctrl_driver_E04ADD4C(SceCipherKey *cipher_key, u8 *buf, int size);
6966
int sceDrmBBCipherFinal(SceCipherKey *cipher_key);
7067

71-
#endif // __KERNEL__
72-
7368
#ifdef __cplusplus
7469
}
7570
#endif // __cplusplus

0 commit comments

Comments
 (0)