Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/head/langinfo.h
          +++ new/usr/src/head/langinfo.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 2003 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      -/*
  31      - * Copyright 2014 Garrett D'Amore <garrett@damore.org>
  32      - */
  33   32  
  34      -
  35   33  #ifndef _LANGINFO_H
  36   34  #define _LANGINFO_H
  37   35  
  38   36  #include <sys/feature_tests.h>
  39   37  #include <nl_types.h>
  40   38  
  41   39  #ifdef  __cplusplus
  42   40  extern "C" {
  43   41  #endif
  44   42  
↓ open down ↓ 94 lines elided ↑ open up ↑
 139  137  #define NOEXPR          57      /* negative response expression */
 140  138  #define _DATE_FMT       58      /* strftime format for date(1) */
 141  139  
 142  140  #if defined(__EXTENSIONS__) || !defined(_XOPEN_SOURCE)
 143  141  #define MAXSTRMSG       58 /* Maximum number of strings in langinfo */
 144  142  #endif /* defined(__EXTENSIONS__) || !defined(_XOPEN_SOURCE) */
 145  143  
 146  144  /*
 147  145   * and the definitions of functions langinfo(3C)
 148  146   */
 149      -#if defined(__STDC__)
 150  147  char   *nl_langinfo(nl_item);   /* get a string from the database       */
 151      -#else
 152      -char   *nl_langinfo();          /* get a string from the database       */
 153      -#endif
 154  148  
 155  149  #if defined(_XPG7) || !defined(_STRICT_SYMBOLS)
 156  150  #ifndef _LOCALE_T
 157  151  #define _LOCALE_T
 158  152  typedef struct _locale *locale_t;
 159  153  #endif
 160  154  
 161      -#if defined(__STDC__)
 162  155  char    *nl_langinfo_l(nl_item, locale_t);
 163      -#else
 164      -char    *nl_langinfo_l();
 165  156  #endif
 166      -#endif
 167  157  
 168  158  #ifdef  __cplusplus
 169  159  }
 170  160  #endif
 171  161  
 172  162  #endif  /* _LANGINFO_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX