소스 검색

* 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