home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 1996 November / VPR9611B.ISO / vabasic / ntclnt.exe / DISK8 / data.8 / datab / INCLUDE / VLOCALE.H < prev    next >
C/C++ Source or Header  |  1996-07-29  |  2KB  |  57 lines

  1. /*****************************************************************************
  2.  ***   $Source: /rcs/crcs/general/vlocale.h,v $
  3.  ***   Checked int by: $Author: clement $
  4.  ***   $Date: 1996/07/03 15:09:07 $
  5.  ***   $Revision: 1.3 $
  6.  *****************************************************************************
  7.  ***                                       ***
  8.  ***          Copyright (c) 1994, Visual Edge Software Ltd.           ***
  9.  ***                                        ***
  10.  ***   All rights reserved.  This notice is  intended  as  a  precaution   ***
  11.  ***   against    inadvertent publication, and shall not be deemed to con-   ***
  12.  ***   stitute an acknowledgment that publication has  occurred     nor  to   ***
  13.  ***   imply  any  waiver  of confidentiality.    The year included in the   ***
  14.  ***   notice is the year of the creation of the work.               ***
  15.  ***                                        ***
  16.  *****************************************************************************/
  17.  
  18. #ifndef VLOCALE_H
  19. #  define VLOCALE_H
  20.  
  21. /*-----------------------------------------------------------------------
  22.  * The sun4 standard header locale.h does not contain function 
  23.  * prototypes that are compatible with C++. Therefore, on sun4
  24.  * ensure the functions are prototyped correctly, on all other
  25.  * platforms just include the standard header.
  26.  * The CenterLine compiler on sun4 performs the same trick,
  27.  * we do not need to do it again here.
  28.  *-----------------------------------------------------------------------*/
  29. #  if defined(sun4) && defined (__cplusplus) && !defined (__CLCC__)
  30. /*----------------------------------------------------------------------
  31.  * These defines will cause the prototypes generated by locale.h to
  32.  * be for a set of non-existent and unused functions.
  33.  * By later undefining them, the correct prototypes can be 
  34.  * generated.
  35.  *----------------------------------------------------------------------*/
  36. #    define setlocale ______vsetlocale
  37. #    define localeconv ______vlocaleconv
  38. #    define localdtconv ______vlocaldtconv
  39.  
  40. #    include <locale.h>
  41.  
  42. #    undef setlocale
  43. #    undef localeconv
  44. #    undef localdtconv
  45.  
  46.      extern "C" char *       setlocale( int category, const char *locale );
  47.      extern "C" struct lconv *  localeconv( void );
  48. #    ifndef _POSIX_SOURCE
  49.         extern "C" struct dtconv * localdtconv();
  50. #    endif
  51.  
  52. #  else /* !(sun4 || cplusplus) */
  53. #    include <locale.h>
  54. #  endif
  55.  
  56. #endif /* VLOCALE_H */
  57.