From 7cfa4cd5a42956e0c791675b835d041f8d378b83 Mon Sep 17 00:00:00 2001 From: codestation Date: Mon, 29 Aug 2016 13:57:02 -0400 Subject: Added missing __cplusplus guards. --- include/user/kernel/clib.h | 8 ++++++++ include/user/kernel/modulemgr.h | 8 ++++++++ include/user/kernel/rng.h | 8 ++++++++ 3 files changed, 24 insertions(+) (limited to 'include/user/kernel') diff --git a/include/user/kernel/clib.h b/include/user/kernel/clib.h index 7f3ec34..bb8ba0d 100644 --- a/include/user/kernel/clib.h +++ b/include/user/kernel/clib.h @@ -4,9 +4,17 @@ #include #include +#ifdef __cplusplus +extern "C" { +#endif + int sceClibStrcmp(const char *, const char *); int sceClibSnprintf(char *, SceSize, const char *, ...); int sceClibVsnprintf(char *, SceSize, const char *, va_list); +#ifdef __cplusplus +} #endif + +#endif /* _PSP2_KERNEL_CLIB_H_ */ diff --git a/include/user/kernel/modulemgr.h b/include/user/kernel/modulemgr.h index baf9a75..ab41eba 100644 --- a/include/user/kernel/modulemgr.h +++ b/include/user/kernel/modulemgr.h @@ -3,6 +3,10 @@ #include +#ifdef __cplusplus +extern "C" { +#endif + typedef struct { SceUInt size; //< this structure size (0x18) @@ -52,4 +56,8 @@ int sceKernelUnloadModule(SceUID modid, int flags, SceKernelULMOption *option); SceUID sceKernelLoadStartModule(char *path, SceSize args, void *argp, int flags, SceKernelLMOption *option, int *status); int sceKernelStopUnloadModule(SceUID modid, SceSize args, void *argp, int flags, SceKernelULMOption *option, int *status); +#ifdef __cplusplus +} #endif + +#endif /* _PSP2_KERNEL_MODULEMGR_H_ */ diff --git a/include/user/kernel/rng.h b/include/user/kernel/rng.h index 2474a48..108362f 100644 --- a/include/user/kernel/rng.h +++ b/include/user/kernel/rng.h @@ -1,6 +1,10 @@ #ifndef _PSP2_KERNEL_RNG_H_ #define _PSP2_KERNEL_RNG_H_ +#ifdef __cplusplus +extern "C" { +#endif + /*** * Fills the output buffer with random data. * @@ -11,4 +15,8 @@ */ int sceKernelGetRandomNumber(void *output, unsigned size); +#ifdef __cplusplus +} #endif + +#endif /* _PSP2_KERNEL_RNG_H_ */ -- cgit v1.2.3