Changeset 3948 for trunk


Ignore:
Timestamp:
Nov 9, 2018, 11:39:49 PM (7 years ago)
Author:
bird
Message:

os2emx.h: Fixed FDATE and FTIME for watcom, dropped the pragma pack(1) around GINFOSEG and LINFOSEG given that the whole file is pack(1) and this restored the default.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libc/include/os2emx.h

    r3906 r3948  
    182182# ifndef __volatile__
    183183#  define __volatile__ volatile
     184# endif
     185# ifndef  __extension__
     186#  define  __extension__
    184187# endif
    185188# if !defined (INCL_LONGLONG_STRUCTS) && !defined (__WATCOMC__)
     
    14761479
    14771480
    1478 #if 0 /* -pedantic generates annoying warnings here */
    14791481typedef struct _FTIME
    14801482{
    1481   USHORT twosecs : 5;
    1482   USHORT minutes : 6;
    1483   USHORT hours   : 5;
     1483  __extension__ USHORT twosecs : 5;
     1484  __extension__ USHORT minutes : 6;
     1485  __extension__ USHORT hours     : 5;
    14841486} FTIME;
    1485 #else
    1486 typedef struct _FTIME
    1487 {
    1488   unsigned twosecs : 5;
    1489   unsigned minutes : 6;
    1490   unsigned hours   : 5;
    1491 } FTIME;
    1492 #endif
    14931487typedef FTIME *PFTIME;
    14941488
    1495 #if 0 /* -pedantic generates annoying warnings here */
    14961489typedef struct _FDATE
    14971490{
    1498   USHORT day   : 5;
    1499   USHORT month : 4;
    1500   USHORT year  : 7;
     1491  __extension__ USHORT day   : 5;
     1492  __extension__ USHORT month : 4;
     1493  __extension__ USHORT year  : 7;
    15011494} FDATE;
    1502 #else
    1503 typedef struct _FDATE
    1504 {
    1505   unsigned day   : 5;
    1506   unsigned month : 4;
    1507   unsigned year  : 7;
    1508 } FDATE;
    1509 #endif
    15101495typedef FDATE *PFDATE;
    15111496
     
    1342513410#if defined(INCL_DOSINFOSEG) && !defined(INCL_NO16BIT)
    1342613411
    13427 #pragma pack(1)
    1342813412typedef struct _GINFOSEG
    1342913413{
     
    1348513469} LINFOSEG;
    1348613470typedef LINFOSEG *PLINFOSEG;
    13487 #pragma pack()
    1348813471
    1348913472#ifndef PT_FULLSCREEN
Note: See TracChangeset for help on using the changeset viewer.