This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.
 //


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]