You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING. If not, write to the Free
-Software Foundation, 59 Temple Place - Suite 330, Boston, MA
-02111-1307, USA. */
+Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
+02110-1301, USA. */
/* As a special exception, if you link this library with other files,
some of which are compiled with GCC, to produce an executable,
#else
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#define __GTHREADS 1
#define __gthread_active_p() 1
typedef struct
{
+#ifndef __RTP__
volatile unsigned char busy;
+#endif
volatile unsigned char done;
}
__gthread_once_t;
-#define __GTHREAD_ONCE_INIT { 0, 0 }
+#ifndef __RTP__
+# define __GTHREAD_ONCE_INIT { 0, 0 }
+#else
+# define __GTHREAD_ONCE_INIT { 0 }
+#endif
extern int __gthread_once (__gthread_once_t *once, void (*func)(void));
extern void *__gthread_getspecific (__gthread_key_t key);
extern int __gthread_setspecific (__gthread_key_t key, void *ptr);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* not _LIBOBJC */
#endif /* gthr-vxworks.h */