home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional Developers Kit 1992 November / Disc01 / Disc01.mdf / cppbeta / incl / sysa / timeb.h__ / TIMEB.H
Encoding:
C/C++ Source or Header  |  1992-09-28  |  1.8 KB  |  63 lines

  1. #ifndef __timeb_h
  2.    #define __timeb_h
  3.  
  4.    #pragma info( none )
  5.    #ifndef __CHKHDR__
  6.       #pragma info( none )
  7.    #endif
  8.    #pragma info( restore )
  9.  
  10.    #ifdef __cplusplus
  11.       extern "C" {
  12.    #endif
  13.  
  14.    /********************************************************************/
  15.    /*  <sys\timeb.h> header file                                       */
  16.    /*                                                                  */
  17.    /*  Licensed Materials - Property of IBM                            */
  18.    /*                                                                  */
  19.    /*  IBM C Set/2 Beta Version                                        */
  20.    /*  Copyright (C) International Business Machines Corp., 1991,1992  */
  21.    /*  All rights reserved                                             */
  22.    /*                                                                  */
  23.    /*  US Government Users Restricted Rights -                         */
  24.    /*  Use, duplication, or disclosure restricted                      */
  25.    /*  by GSA ADP Schedule Contract with IBM Corp.                     */
  26.    /*                                                                  */
  27.    /********************************************************************/
  28.  
  29.    #if defined(__EXTENDED__)
  30.  
  31.       #ifndef  __time_t
  32.          #define __time_t
  33.          typedef long time_t;
  34.       #endif
  35.  
  36.       #pragma pack( 2 )
  37.       struct timeb
  38.          {
  39.          time_t time;
  40.          unsigned short millitm;
  41.          short timezone;
  42.          short dstflag;
  43.          };
  44.       #pragma pack( )
  45.  
  46.       void _Optlink _ftime( struct timeb * );
  47.  
  48.       #define ftime(a) _ftime(a)
  49.  
  50.    #endif
  51.  
  52.    #ifdef __cplusplus
  53.       }
  54.    #endif
  55.  
  56.    #pragma info( none )
  57.    #ifndef __CHKHDR__
  58.       #pragma info( restore )
  59.    #endif
  60.    #pragma info( restore )
  61.  
  62. #endif
  63.