diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2008-06-16 18:54:17 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2008-06-16 18:54:17 +0000 |
commit | 4e73927b0694e717fe637358042be425fca8fd81 (patch) | |
tree | 1bfc310848cd4ee45284b374dfce31e527875643 /newlib | |
parent | b243d287e4b72277fbee525e454bf7c3a434ca55 (diff) | |
download | cygnal-4e73927b0694e717fe637358042be425fca8fd81.tar.gz cygnal-4e73927b0694e717fe637358042be425fca8fd81.tar.bz2 cygnal-4e73927b0694e717fe637358042be425fca8fd81.zip |
2008-06-16 Ken Werner <ken.werner@de.ibm.com>
* libc/machine/spu/sys/dirent.h: Add extern "C" specifier if C++.
* libc/machine/spu/sys/sched.h: Likewise.
* libc/machine/spu/sys/syscall.h: Likewise.
Diffstat (limited to 'newlib')
-rw-r--r-- | newlib/ChangeLog | 7 | ||||
-rw-r--r-- | newlib/libc/machine/spu/sys/dirent.h | 6 | ||||
-rw-r--r-- | newlib/libc/machine/spu/sys/sched.h | 6 | ||||
-rw-r--r-- | newlib/libc/machine/spu/sys/syscall.h | 6 |
4 files changed, 25 insertions, 0 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 074d00569..f98a47c22 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,10 @@ + +2008-06-16 Ken Werner <ken.werner@de.ibm.com> + + * libc/machine/spu/sys/dirent.h: Add extern "C" specifier if C++. + * libc/machine/spu/sys/sched.h: Likewise. + * libc/machine/spu/sys/syscall.h: Likewise. + 2008-06-16 Ken Werner <ken.werner@de.ibm.com> * libc/machine/spu/mk_syscalls: Provide .type and .size directives diff --git a/newlib/libc/machine/spu/sys/dirent.h b/newlib/libc/machine/spu/sys/dirent.h index 876d3c1e8..6a158ec4a 100644 --- a/newlib/libc/machine/spu/sys/dirent.h +++ b/newlib/libc/machine/spu/sys/dirent.h @@ -32,6 +32,9 @@ */ #ifndef _SYS_DIRENT_H #define _SYS_DIRENT_H +#ifdef __cplusplus +extern "C" { +#endif #define MAXNAMLEN 255 @@ -54,4 +57,7 @@ struct dirent *readdir (DIR *); void rewinddir(DIR *); void seekdir(DIR *dir, off_t offset); off_t telldir(DIR *dir); +#ifdef __cplusplus +} +#endif #endif 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 diff --git a/newlib/libc/machine/spu/sys/syscall.h b/newlib/libc/machine/spu/sys/syscall.h index 3a358a61b..caac53105 100644 --- a/newlib/libc/machine/spu/sys/syscall.h +++ b/newlib/libc/machine/spu/sys/syscall.h @@ -1,4 +1,10 @@ #ifndef _SYS_SYSCALL_H #define _SYS_SYSCALL_H +#ifdef __cplusplus +extern "C" { +#endif int __send_to_ppe(unsigned int signalcode, unsigned int opcode, void *data); +#ifdef __cplusplus +} +#endif #endif |