summaryrefslogtreecommitdiffstats
path: root/newlib/libc
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc')
-rw-r--r--newlib/libc/machine/powerpc/machine/stdlib.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/newlib/libc/machine/powerpc/machine/stdlib.h b/newlib/libc/machine/powerpc/machine/stdlib.h
index 03a5319fd..1cf18371a 100644
--- a/newlib/libc/machine/powerpc/machine/stdlib.h
+++ b/newlib/libc/machine/powerpc/machine/stdlib.h
@@ -21,6 +21,9 @@ _PTR _EXFUN(_vec_realloc_r,(struct _reent *, _PTR __r, size_t __size));
#define __need_inttypes
#include <sys/types.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
__int16_t _EXFUN(atosfix16,(const char *__str));
__int16_t _EXFUN(_atosfix16_r,(struct _reent *, const char *__str));
__int32_t _EXFUN(atosfix32,(const char *__str));
@@ -54,6 +57,9 @@ __uint32_t _EXFUN(_strtoufix32_r,(struct _reent *, const char *__str,
__uint64_t _EXFUN(strtoufix64,(const char *__str, char **__endptr));
__uint64_t _EXFUN(_strtoufix64_r,(struct _reent *, const char *__str,
char **__endptr));
+#ifdef __cplusplus
+}
+#endif
# endif /* __SPE__ */