浏览代码

* solved bug #3860 with a union

marco 20 年之前
父节点
当前提交
e9860e8c97
共有 1 个文件被更改,包括 4 次插入5 次删除
  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