This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: fix PR28546
Tom Tromey wrote:
"Andreas" == Andreas Tobler <toa@pop.agri.ch> writes:
Andreas> PR libgcj/28546
Andreas> * include/no-threads.h: Typdef _Jv_Thread_t to class.
This seems weird since there is no actual definition of the class.
Can't we just do:
class _Jv_Thread_t { };
Hm, it works with the below.
Ok?
Thanks for review!
Andreas
2006-08-02 Andreas Tobler <a.tobler@schweiz.ch>
PR libgcj/28546
* include/no-threads.h: Declare _Jv_Thread_t as empty class.
Index: no-threads.h
===================================================================
--- no-threads.h (revision 115863)
+++ no-threads.h (working copy)
@@ -1,7 +1,7 @@
// -*- c++ -*-
// no-threads.h - Defines for using no threads.
-/* Copyright (C) 1998, 1999, 2004 Free Software Foundation
+/* Copyright (C) 1998, 1999, 2004, 2006 Free Software Foundation
This file is part of libgcj.
@@ -25,10 +25,14 @@
typedef int _Jv_ConditionVariable_t;
typedef int _Jv_Mutex_t;
-typedef int _Jv_Thread_t;
typedef void _Jv_ThreadStartFunc (java::lang::Thread *);
+//
+// Declarations
+//
+class _Jv_Thread_t { };
+
//
// Condition variables.
//