home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / detk45he.zip / libc / sys / timeb.h < prev    next >
Text File  |  1999-03-15  |  2KB  |  83 lines

  1. #if __IBMC__ || __IBMCPP__
  2. #pragma info( none )
  3. #ifndef __CHKHDR__
  4.    #pragma info( none )
  5. #endif
  6. #pragma info( restore )
  7. #endif
  8.  
  9. #ifndef __timeb_h
  10.    #define __timeb_h
  11.  
  12.    #ifdef __cplusplus
  13.       extern "C" {
  14.    #endif
  15.  
  16.    #ifndef  _LNK_CONV
  17.       #if __IBMC__ || __IBMCPP__ || defined(_OPTLINK_SUPPORTED)
  18.          #define _LNK_CONV   _Optlink
  19.       #else
  20.          #define _LNK_CONV
  21.       #endif
  22.    #endif
  23.  
  24.    #ifndef _IMPORT
  25.       #ifdef __IMPORTLIB__
  26.          #define _IMPORT _Import
  27.       #else
  28.          #define _IMPORT
  29.       #endif
  30.    #endif
  31.  
  32.    /********************************************************************/
  33.    /*  <sys\timeb.h> header file                                       */
  34.    /*                                                                  */
  35.    /*  (C) Copyright IBM Corp. 1991, 1995.                             */
  36.    /*  - Licensed Material - Program-Property of IBM                   */
  37.    /*  - All rights reserved                                           */
  38.    /*                                                                  */
  39.    /********************************************************************/
  40.  
  41.    #if defined(__EXTENDED__)
  42.  
  43.       #ifndef  __time_t
  44.          #define __time_t
  45.          typedef long time_t;
  46.       #endif
  47.  
  48.  
  49.       #if ! __THW_PPC__
  50.          #pragma pack( 2 )
  51.       #endif
  52.       struct timeb
  53.          {
  54.          time_t time;
  55.          unsigned short millitm;
  56.          short timezone;
  57.          short dstflag;
  58.          };
  59.       #if ! __THW_PPC__
  60.          #pragma pack( )
  61.       #endif
  62.  
  63.       extern void _IMPORT _LNK_CONV _ftime( struct timeb * );
  64.  
  65.       #define ftime(a) _ftime(a)
  66.  
  67.    #endif
  68.  
  69.    #ifdef __cplusplus
  70.       }
  71.    #endif
  72.  
  73. #endif
  74.  
  75. #if __IBMC__ || __IBMCPP__
  76. #pragma info( none )
  77. #ifndef __CHKHDR__
  78.    #pragma info( restore )
  79. #endif
  80. #pragma info( restore )
  81. #endif
  82.  
  83.