Browse Source

* solved bug #3860 with a union

marco 20 years ago
parent
commit
e9860e8c97
1 changed files with 4 additions and 5 deletions
  1. 4 5
      packages/base/libc/timeh.inc

+ 4 - 5
packages/base/libc/timeh.inc

@@ -24,11 +24,10 @@ type
         tm_wday : longint;
         tm_wday : longint;
         tm_yday : longint;
         tm_yday : longint;
         tm_isdst : longint;
         tm_isdst : longint;
-        tm_gmtoff : longint;
-        tm_zone : Pchar;
-        __tm_gmtoff : longint;
-        __tm_zone : Pchar;
-     end;
+        case boolean of 
+         false : (tm_gmtoff : longint;tm_zone : Pchar);
+         true  : (__tm_gmtoff : longint;__tm_zone : Pchar);
+	end;
 
 
    Pitimerspec = ^itimerspec;
    Pitimerspec = ^itimerspec;
    itimerspec = record
    itimerspec = record