This is the mail archive of the java@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: relocate bits of posix.cc into natPosix*.cc?


Adam Megacz wrote:

>Hey, setting aside any grand plans of reorganizing gcj's
>platform-specific code, what should I do here as a short-term
>solution? I see three options:
>
>1. What I write below: eliminate posix.cc, it only defines two
>   functions which could go elsewhere.
>
>2. Inline _Jv_gettimeofday(), leave _Jv_select() in posix.cc, and add
>   configure hackery to make posix.cc not build on win32.
>
>3. "#ifdef POSIX" the entire file.
>

How about adding a win32.cc, putting the win32 implementation of 
_Jv_gettimeofday() in it, and set things up so that posix.cc only builds 
on posix and win32.cc only builds on windows.

regards

Bryce.




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