Commit 37ca4602 by Nathan Sidwell Committed by Nathan Sidwell

* gthr-vxworks.h (UNUSED): Define.

From-SVN: r133477
parent 15f6d6e7
2008-03-24 Nathan Sidwell <nathan@codesourcery.com>
* gthr-vxworks.h (UNUSED): Define.
2008-03-23 H.J. Lu <hongjiu.lu@intel.com> 2008-03-23 H.J. Lu <hongjiu.lu@intel.com>
* config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and
......
...@@ -36,6 +36,11 @@ Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA ...@@ -36,6 +36,11 @@ Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
#include "gthr-posix.h" #include "gthr-posix.h"
#else #else
#ifdef __cplusplus
#define UNUSED(x)
#else
#define UNUSED(x) x __attribute__((unused))
#endif
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
...@@ -141,6 +146,8 @@ extern int __gthread_key_delete (__gthread_key_t key); ...@@ -141,6 +146,8 @@ extern int __gthread_key_delete (__gthread_key_t key);
extern void *__gthread_getspecific (__gthread_key_t key); extern void *__gthread_getspecific (__gthread_key_t key);
extern int __gthread_setspecific (__gthread_key_t key, void *ptr); extern int __gthread_setspecific (__gthread_key_t key, void *ptr);
#undef UNUSED
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment