Print this page
remove support for non-ANSI compilation


   3  *
   4  * The contents of this file are subject to the terms of the
   5  * Common Development and Distribution License, Version 1.0 only
   6  * (the "License").  You may not use this file except in compliance
   7  * with the License.
   8  *
   9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  10  * or http://www.opensolaris.org/os/licensing.
  11  * See the License for the specific language governing permissions
  12  * and limitations under the License.
  13  *
  14  * When distributing Covered Code, include this CDDL HEADER in each
  15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  16  * If applicable, add the following below this CDDL HEADER, with the
  17  * fields enclosed by brackets "[]" replaced with your own identifying
  18  * information: Portions Copyright [yyyy] [name of copyright owner]
  19  *
  20  * CDDL HEADER END
  21  */
  22 /*


  23  * Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
  24  * Use is subject to license terms.
  25  */
  26 
  27 /*
  28  * An application should not include this header directly.  Instead it
  29  * should be included only through the inclusion of other Sun headers.
  30  *
  31  * The contents of this header is limited to identifiers specified in
  32  * the C99 standard and in conflict with the C++ implementation of the
  33  * standard header.  The C++ standard may adopt the C99 standard at
  34  * which point it is expected that the symbols included here will
  35  * become part of the C++ std namespace.
  36  */
  37 
  38 #ifndef _ISO_WCHAR_C99_H
  39 #define _ISO_WCHAR_C99_H
  40 
  41 #pragma ident   "%Z%%M% %I%     %E% SMI"
  42 
  43 #ifdef  __cplusplus
  44 extern "C" {
  45 #endif
  46 
  47 /* Introduced in ISO/IEC 9899:1999 standard */
  48 
  49 #if !defined(_LP64) && !defined(_LONGLONG_TYPE)
  50 #ifdef __PRAGMA_REDEFINE_EXTNAME
  51 #pragma redefine_extname vfwscanf       _vfwscanf_c89
  52 #pragma redefine_extname vswscanf       _vswscanf_c89
  53 #pragma redefine_extname vwscanf        _vwscanf_c89
  54 #else
  55 #define vfwscanf        _vfwscanf_c89
  56 #define vswscanf        _vswscanf_c89
  57 #define vwscanf         _vwscanf_c89
  58 #endif
  59 #endif /* !defined(_LP64) && !defined(_LONGLONG_TYPE) */
  60 
  61 #ifdef __STDC__
  62 
  63 #if defined(_STDC_C99) || \
  64         (!defined(_STRICT_STDC) && !defined(__XOPEN_OR_POSIX)) || \
  65         defined(_XPG6) || defined(__EXTENSIONS__)
  66 extern int vfwscanf(__FILE *_RESTRICT_KYWD, const wchar_t *_RESTRICT_KYWD,
  67                 __va_list);
  68 extern int vswscanf(const wchar_t *_RESTRICT_KYWD,
  69                 const wchar_t *_RESTRICT_KYWD, __va_list);
  70 extern int vwscanf(const wchar_t *_RESTRICT_KYWD, __va_list);
  71 extern float wcstof(const wchar_t *_RESTRICT_KYWD,
  72                 wchar_t **_RESTRICT_KYWD);
  73 #if defined(_LONGLONG_TYPE)
  74 extern long double wcstold(const wchar_t *_RESTRICT_KYWD,
  75                 wchar_t **_RESTRICT_KYWD);
  76 extern long long wcstoll(const wchar_t *_RESTRICT_KYWD,
  77                 wchar_t **_RESTRICT_KYWD, int);
  78 extern unsigned long long wcstoull(const wchar_t *_RESTRICT_KYWD,
  79                 wchar_t **_RESTRICT_KYWD, int);
  80 #endif /* defined(_LONGLONG_TYPE) */
  81 
  82 #endif /* defined(_STDC_C99) || (!defined(_STRICT_STDC)... */
  83 
  84 #else /* __STDC__ */
  85 
  86 #if !defined(__XOPEN_OR_POSIX) || defined(_XPG6) || defined(__EXTENSIONS__)
  87 extern int      vfwscanf();
  88 extern int      vswscanf();
  89 extern int      vwscanf();
  90 extern float    wcstof();
  91 extern long double wcstold();
  92 extern long int wcstoll();
  93 extern long int wcstoull();
  94 #endif /* !defined(__XOPEN_OR_POSIX) || defined(_XPG6) ... */
  95 
  96 #endif /* __STDC__ */
  97 
  98 #ifdef  __cplusplus
  99 }
 100 #endif
 101 
 102 #endif  /* _ISO_WCHAR_C99_H */


   3  *
   4  * The contents of this file are subject to the terms of the
   5  * Common Development and Distribution License, Version 1.0 only
   6  * (the "License").  You may not use this file except in compliance
   7  * with the License.
   8  *
   9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  10  * or http://www.opensolaris.org/os/licensing.
  11  * See the License for the specific language governing permissions
  12  * and limitations under the License.
  13  *
  14  * When distributing Covered Code, include this CDDL HEADER in each
  15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  16  * If applicable, add the following below this CDDL HEADER, with the
  17  * fields enclosed by brackets "[]" replaced with your own identifying
  18  * information: Portions Copyright [yyyy] [name of copyright owner]
  19  *
  20  * CDDL HEADER END
  21  */
  22 /*
  23  * Copyright 2014 Garrett D'Amore <garrett@damore.org>
  24  *
  25  * Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
  26  * Use is subject to license terms.
  27  */
  28 
  29 /*
  30  * An application should not include this header directly.  Instead it
  31  * should be included only through the inclusion of other Sun headers.
  32  *
  33  * The contents of this header is limited to identifiers specified in
  34  * the C99 standard and in conflict with the C++ implementation of the
  35  * standard header.  The C++ standard may adopt the C99 standard at
  36  * which point it is expected that the symbols included here will
  37  * become part of the C++ std namespace.
  38  */
  39 
  40 #ifndef _ISO_WCHAR_C99_H
  41 #define _ISO_WCHAR_C99_H
  42 


  43 #ifdef  __cplusplus
  44 extern "C" {
  45 #endif
  46 
  47 /* Introduced in ISO/IEC 9899:1999 standard */
  48 
  49 #if !defined(_LP64) && !defined(_LONGLONG_TYPE)
  50 #ifdef __PRAGMA_REDEFINE_EXTNAME
  51 #pragma redefine_extname vfwscanf       _vfwscanf_c89
  52 #pragma redefine_extname vswscanf       _vswscanf_c89
  53 #pragma redefine_extname vwscanf        _vwscanf_c89
  54 #else
  55 #define vfwscanf        _vfwscanf_c89
  56 #define vswscanf        _vswscanf_c89
  57 #define vwscanf         _vwscanf_c89
  58 #endif
  59 #endif /* !defined(_LP64) && !defined(_LONGLONG_TYPE) */
  60 


  61 #if defined(_STDC_C99) || \
  62         (!defined(_STRICT_STDC) && !defined(__XOPEN_OR_POSIX)) || \
  63         defined(_XPG6) || defined(__EXTENSIONS__)
  64 extern int vfwscanf(__FILE *_RESTRICT_KYWD, const wchar_t *_RESTRICT_KYWD,
  65                 __va_list);
  66 extern int vswscanf(const wchar_t *_RESTRICT_KYWD,
  67                 const wchar_t *_RESTRICT_KYWD, __va_list);
  68 extern int vwscanf(const wchar_t *_RESTRICT_KYWD, __va_list);
  69 extern float wcstof(const wchar_t *_RESTRICT_KYWD,
  70                 wchar_t **_RESTRICT_KYWD);
  71 #if defined(_LONGLONG_TYPE)
  72 extern long double wcstold(const wchar_t *_RESTRICT_KYWD,
  73                 wchar_t **_RESTRICT_KYWD);
  74 extern long long wcstoll(const wchar_t *_RESTRICT_KYWD,
  75                 wchar_t **_RESTRICT_KYWD, int);
  76 extern unsigned long long wcstoull(const wchar_t *_RESTRICT_KYWD,
  77                 wchar_t **_RESTRICT_KYWD, int);
  78 #endif /* defined(_LONGLONG_TYPE) */
  79 
  80 #endif /* defined(_STDC_C99) || (!defined(_STRICT_STDC)... */
  81 














  82 #ifdef  __cplusplus
  83 }
  84 #endif
  85 
  86 #endif  /* _ISO_WCHAR_C99_H */