home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / include / sys / timeb.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-20  |  2.1 KB  |  86 lines

  1. #if (defined(__IBMC__) || defined(__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.      #ifdef _M_I386
  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.    /*  VisualAge for C++ for Windows, Version 3.5                      */
  36.    /*    Licensed Material - Property of IBM                           */
  37.    /*                                                                  */
  38.    /*  5801-ARR and Other Materials                                    */
  39.    /*                                                                  */
  40.    /*  (c) Copyright IBM Corp 1991, 1996. All rights reserved.         */
  41.    /*                                                                  */
  42.    /********************************************************************/
  43.  
  44.    #if defined(__EXTENDED__)
  45.  
  46.       #ifndef  __time_t
  47.          #define __time_t
  48.          typedef long time_t;
  49.       #endif
  50.  
  51.  
  52.    #ifdef _M_I386
  53.       #pragma pack( 2 )
  54.    #endif
  55.       struct timeb
  56.          {
  57.          time_t time;
  58.          unsigned short millitm;
  59.          short timezone;
  60.          short dstflag;
  61.          };
  62.    #ifdef _M_I386
  63.       #pragma pack( )
  64.    #endif
  65.  
  66.       extern void _IMPORT _LNK_CONV _ftime( struct timeb * );
  67.  
  68.       #define ftime(a) _ftime(a)
  69.  
  70.    #endif
  71.  
  72.    #ifdef __cplusplus
  73.       }
  74.    #endif
  75.  
  76. #endif
  77.  
  78. #if (defined(__IBMC__) || defined(__IBMCPP__))
  79. #pragma info( none )
  80. #ifndef __CHKHDR__
  81.    #pragma info( restore )
  82. #endif
  83. #pragma info( restore )
  84. #endif
  85.  
  86.