summaryrefslogtreecommitdiffstats
path: root/newlib/libc/machine/spu/sys/sched.h
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/machine/spu/sys/sched.h')
-rw-r--r--newlib/libc/machine/spu/sys/sched.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/newlib/libc/machine/spu/sys/sched.h b/newlib/libc/machine/spu/sys/sched.h
index 90c274c37..60d95c925 100644
--- a/newlib/libc/machine/spu/sys/sched.h
+++ b/newlib/libc/machine/spu/sys/sched.h
@@ -1,6 +1,12 @@
#ifndef _SYS_SCHED_H
#define _SYS_SCHED_H
+#ifdef __cplusplus
+extern "C" {
+#endif
int sched_yield(void);
+#ifdef __cplusplus
+}
+#endif
#endif