diff options
author | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-03-25 13:36:19 +0000 |
---|---|---|
committer | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-03-25 13:36:19 +0000 |
commit | e0f97db9eb84d304602eb35815ba9d188cd69e46 (patch) | |
tree | 84bddb2ec09b31241a95c5b1ded74d60cdff6239 /gcc/gthr-vxworks.h | |
parent | f80df6b2af919960ad08a6f1901ddebb654f981b (diff) | |
download | gcc-e0f97db9eb84d304602eb35815ba9d188cd69e46.tar.gz |
2008-03-24 Basile Starynkevitch <basile@starynkevitch.net>
MELT branch merged with trunk r133512
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@133515 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gthr-vxworks.h')
-rw-r--r-- | gcc/gthr-vxworks.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/gthr-vxworks.h b/gcc/gthr-vxworks.h index ba813140d76..7a61a5a40f7 100644 --- a/gcc/gthr-vxworks.h +++ b/gcc/gthr-vxworks.h @@ -36,6 +36,11 @@ Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA #include "gthr-posix.h" #else +#ifdef __cplusplus +#define UNUSED(x) +#else +#define UNUSED(x) x __attribute__((unused)) +#endif #ifdef __cplusplus extern "C" { @@ -141,6 +146,8 @@ extern int __gthread_key_delete (__gthread_key_t key); extern void *__gthread_getspecific (__gthread_key_t key); extern int __gthread_setspecific (__gthread_key_t key, void *ptr); +#undef UNUSED + #ifdef __cplusplus } #endif |