diff options
author | Patrick Luby <pluby@openoffice.org> | 2000-10-23 14:29:34 +0000 |
---|---|---|
committer | Patrick Luby <pluby@openoffice.org> | 2000-10-23 14:29:34 +0000 |
commit | 0a20754caa995d831e1a3a89aef33570b5dc7786 (patch) | |
tree | 6a68a984f0f04f160361bb16412b1f6d83600e9b /stoc | |
parent | ccf12e3c378d9d316e6e11e8bfa2b80fc190f663 (diff) |
Added #ifdef for Mac OS X to replace tzname[0] used on other platforms.
Diffstat (limited to 'stoc')
-rw-r--r-- | stoc/source/javavm/javavm.cxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/stoc/source/javavm/javavm.cxx b/stoc/source/javavm/javavm.cxx index 757111b3d8bc..c330ad2123e2 100644 --- a/stoc/source/javavm/javavm.cxx +++ b/stoc/source/javavm/javavm.cxx @@ -2,9 +2,9 @@ * * $RCSfile: javavm.cxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: kr $ $Date: 2000-09-28 17:34:41 $ + * last change: $Author: pluby $ $Date: 2000-10-23 15:29:34 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -353,7 +353,11 @@ namespace stoc_javavm { time_t clock = time(NULL); tzset(); tmData = localtime(&clock); +#ifdef MACOSX + char * p = tmData->tm_zone; +#else char * p = tzname[0]; +#endif if (!strcmp(TIMEZONE, p)) pjvm->pushProp(OUString::createFromAscii("user.timezone=ECT")); |