Procházet zdrojové kódy

* solved bug #3860 with a union

marco před 20 roky
rodič
revize
e9860e8c97
1 změnil soubory, kde provedl 4 přidání a 5 odebrání
  1. 4 5
      packages/base/libc/timeh.inc

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

@@ -24,11 +24,10 @@ type
         tm_wday : longint;
         tm_yday : 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;
    itimerspec = record