Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/head/iso/locale_iso.h
          +++ new/usr/src/head/iso/locale_iso.h
↓ open down ↓ 12 lines elided ↑ open up ↑
  13   13   *
  14   14   * When distributing Covered Code, include this CDDL HEADER in each
  15   15   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  16   16   * If applicable, add the following below this CDDL HEADER, with the
  17   17   * fields enclosed by brackets "[]" replaced with your own identifying
  18   18   * information: Portions Copyright [yyyy] [name of copyright owner]
  19   19   *
  20   20   * CDDL HEADER END
  21   21   */
  22   22  /*
       23 + * Copyright 2014 Garrett D'Amore <garrett@damore.org>
       24 + *
  23   25   * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
  24   26   * Use is subject to license terms.
  25   27   */
  26   28  
  27   29  /*      Copyright (c) 1988 AT&T */
  28   30  /*        All Rights Reserved   */
  29   31  
  30   32  
  31   33  /*
  32   34   * An application should not include this header directly.  Instead it
↓ open down ↓ 3 lines elided ↑ open up ↑
  36   38   * C Standard.  Any new identifiers specified in future amendments to the
  37   39   * C Standard must be placed in this header.  If these new identifiers
  38   40   * are required to also be in the C++ Standard "std" namespace, then for
  39   41   * anything other than macro definitions, corresponding "using" directives
  40   42   * must also be added to <locale.h>.
  41   43   */
  42   44  
  43   45  #ifndef _ISO_LOCALE_ISO_H
  44   46  #define _ISO_LOCALE_ISO_H
  45   47  
  46      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  47      -
  48   48  #include <sys/feature_tests.h>
  49   49  
  50   50  #ifdef __cplusplus
  51   51  extern "C" {
  52   52  #endif
  53   53  
  54   54  #if __cplusplus >= 199711L
  55   55  namespace std {
  56   56  #endif
  57   57  
↓ open down ↓ 42 lines elided ↑ open up ↑
 100  100  #define LC_ALL          6
 101  101  
 102  102  #ifndef NULL
 103  103  #if defined(_LP64)
 104  104  #define NULL    0L
 105  105  #else
 106  106  #define NULL    0
 107  107  #endif
 108  108  #endif
 109  109  
 110      -#if     defined(__STDC__)
 111  110  extern char     *setlocale(int, const char *);
 112  111  extern struct lconv *localeconv(void);
 113      -#else
 114      -extern char   *setlocale();
 115      -extern struct lconv     *localeconv();
 116      -#endif
 117  112  
 118  113  #if __cplusplus >= 199711L
 119  114  }
 120  115  #endif /* end of namespace std */
 121  116  
 122  117  #ifdef  __cplusplus
 123  118  }
 124  119  #endif
 125  120  
 126  121  #endif  /* _ISO_LOCALE_ISO_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX