summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/user/kernel/clib.h8
-rw-r--r--include/user/kernel/modulemgr.h8
-rw-r--r--include/user/kernel/rng.h8
-rw-r--r--include/user/pss.h8
4 files changed, 32 insertions, 0 deletions
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 <psp2/types.h>
#include <stdarg.h>
+#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 <psp2/types.h>
+#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_ */
diff --git a/include/user/pss.h b/include/user/pss.h
index 08340e1..d79a868 100644
--- a/include/user/pss.h
+++ b/include/user/pss.h
@@ -3,9 +3,17 @@
#include <psp2/types.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
void *pss_code_mem_alloc(SceSize *);
void pss_code_mem_flush_icache(const void *, SceSize);
void pss_code_mem_lock(void);
void pss_code_mem_unlock(void);
+#ifdef __cplusplus
+}
#endif
+
+#endif /* _PSP2_PSS_H_ */