home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / detk45he.zip / libc / iconv.h < prev    next >
Text File  |  1999-03-15  |  2KB  |  71 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 _ICONV_H
  10.    #define _ICONV_H
  11.  
  12.    #include <stddef.h>
  13.  
  14.    #ifdef __cplusplus
  15.       extern "C" {
  16.    #endif
  17.  
  18.    #ifndef  _LNK_CONV
  19.       #if __IBMC__ || __IBMCPP__ || defined(_OPTLINK_SUPPORTED)
  20.          #define _LNK_CONV   _Optlink
  21.       #else
  22.          #define _LNK_CONV
  23.       #endif
  24.    #endif
  25.  
  26.    #ifndef _IMPORT
  27.       #ifdef __IMPORTLIB__
  28.          #define _IMPORT _Import
  29.       #else
  30.          #define _IMPORT
  31.       #endif
  32.    #endif
  33.  
  34.    /********************************************************************/
  35.    /*  <iconv.h> header file                                           */
  36.    /*                                                                  */
  37.    /*  (C) Copyright IBM Corp. 1991, 1995.                             */
  38.    /*  - Licensed Material - Program-Property of IBM                   */
  39.    /*  - All rights reserved                                           */
  40.    /*                                                                  */
  41.    /********************************************************************/
  42.  
  43.    #ifndef __ICONVP_H
  44.       typedef void *iconv_t;
  45.    #endif
  46.  
  47.    #ifndef CCSID_DEF
  48.       #define CCSID_DEF
  49.       typedef unsigned int       CCSID;
  50.    #endif
  51.  
  52.    extern iconv_t _IMPORT _LNK_CONV iconv_open(const char *, const char *);
  53.    extern size_t  _IMPORT _LNK_CONV iconv(iconv_t, const char **, size_t *, 
  54.                                           char **, size_t *);
  55.    extern int     _IMPORT _LNK_CONV iconv_close(iconv_t);
  56.  
  57.    #ifdef __cplusplus
  58.       }
  59.    #endif
  60.  
  61. #endif
  62.  
  63. #if __IBMC__ || __IBMCPP__
  64. #pragma info( none )
  65. #ifndef __CHKHDR__
  66.    #pragma info( restore )
  67. #endif
  68. #pragma info( restore )
  69. #endif
  70.  
  71.