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: patch2 darwin & libgcj




Tom Tromey wrote:
> 
> >>>>> "Andreas" == Andreas Tobler <toa@pop.agri.ch> writes:
> 
> Andreas> P.S, I don't send the configure diff since I'm not sure about
> Andreas> it. Do I have to provide this or is anyone else able to
> Andreas> update it?
> 
> I'll regenerate configure when I check in the patch.  Don't send
> configure diffs, as they just hide the real patch.

Thanks,

>       char *tz1, *tz2;
>     #ifdef HAVE_TM_ZONE
>       tz1 = tim->tm_zone;
>       tz2 = NULL;
>     #elif defined (HAVE_TZNAME)
>       tz1 = tzname[0];
>       tz2 = strcmp (tzname[0], tzname[1]) ? tzname[1] : NULL;
>     #else
>     #error etc
>     #endif

Here I have an additional question: on darwin the tm_zone is defined as
char* while on powerpc-linux it is defined as const char*.
So the assignement tz1 = tim->tm_zone is not a valid one. 
How should I go on here? tz1 const char* ?

Thanks,

Andreas


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