#if (defined(__IBMC__) || defined(__IBMCPP__))
#pragma info( none )
#ifndef __CHKHDR__
   #pragma info( none )
#endif
#pragma info( restore )
#endif

#ifndef __direct_h
   #define __direct_h

   #ifdef __cplusplus
      extern "C" {
   #endif

   #ifndef  _LNK_CONV
      #ifdef _M_I386
         #define _LNK_CONV   _Optlink
      #else
         #define _LNK_CONV
      #endif
   #endif

   #ifndef _IMPORT
      #ifdef __IMPORTLIB__
         #define _IMPORT _Import
      #else
         #define _IMPORT
      #endif
   #endif

   /********************************************************************/
   /*  <direct.h> header file                                          */
   /*                                                                  */
   /*  IBM VisualAge C Set ++ for OS/2, Version 3.00                   */
   /*  (C) Copyright IBM Corp. 1991, 1995.                             */
   /*  - Licensed Material - Program-Property of IBM                   */
   /*  - All rights reserved                                           */
   /*                                                                  */
   /********************************************************************/

   #if defined(__EXTENDED__)

      int    _IMPORT _LNK_CONV _chdir( char * );
      char * _IMPORT _LNK_CONV _getcwd( char *, int );
      int    _IMPORT _LNK_CONV _mkdir( char * );
      int    _IMPORT _LNK_CONV _rmdir( char * );

      int    _IMPORT _LNK_CONV chdir( char * );
      char * _IMPORT _LNK_CONV getcwd( char *, int );
      int    _IMPORT _LNK_CONV mkdir( char * );
      int    _IMPORT _LNK_CONV rmdir( char * );

    #if (defined(__IBMC__) || defined(__IBMCPP__))
      #ifdef __OS2__
      #pragma map( chdir , "_chdir"  )
      #pragma map( getcwd, "_getcwd" )
      #pragma map( mkdir , "_mkdir"  )
      #pragma map( rmdir , "_rmdir"  )
      #else
      #pragma map( chdir , "?_chdir"  )
      #pragma map( getcwd, "?_getcwd" )
      #pragma map( mkdir , "?_mkdir"  )
      #pragma map( rmdir , "?_rmdir"  )
      #endif
    #else
      #pragma Alias( chdir , "_chdir"  )
      #pragma Alias( getcwd, "_getcwd" )
      #pragma Alias( mkdir , "_mkdir"  )
      #pragma Alias( rmdir , "_rmdir"  )
    #endif

      int    _IMPORT _LNK_CONV _chdrive( int );
      char * _IMPORT _LNK_CONV _getdcwd( int , char *, int );
      int    _IMPORT _LNK_CONV _getdrive( void );


   #endif

   #ifdef __cplusplus
      }
   #endif

#endif

#if (defined(__IBMC__) || defined(__IBMCPP__))
#pragma info( none )
#ifndef __CHKHDR__
   #pragma info( restore )
#endif
#pragma info( restore )
#endif

