Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/head/locale.h
          +++ new/usr/src/head/locale.h
↓ open down ↓ 17 lines elided ↑ open up ↑
  18   18   * information: Portions Copyright [yyyy] [name of copyright owner]
  19   19   *
  20   20   * CDDL HEADER END
  21   21   */
  22   22  /*
  23   23   * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
  24   24   * Use is subject to license terms.
  25   25   */
  26   26  
  27   27  /*
  28      - * Copyright 2013 Garrett D'Amore <garrett@damore.org>
       28 + * Copyright 2014 Garrett D'Amore <garrett@damore.org>
  29   29   *
  30   30   * Portions of this file developed by Garrett D'Amore are licensed
  31   31   * under the terms of the Common Development and Distribution License (CDDL)
  32   32   * version 1.0 only.  The use of subsequent versions of the License are
  33   33   * is specifically prohibited unless those terms are not in conflict with
  34   34   * version 1.0 of the License.  You can find this license on-line at
  35   35   * http://www.illumos.org/license/CDDL
  36   36   */
  37   37  
  38   38  #ifndef _LOCALE_H
↓ open down ↓ 38 lines elided ↑ open up ↑
  77   77  #define LC_COLLATE_MASK         (1 << LC_COLLATE)
  78   78  #define LC_MONETARY_MASK        (1 << LC_MONETARY)
  79   79  #define LC_MESSAGES_MASK        (1 << LC_MESSAGES)
  80   80  #define LC_ALL_MASK             (0x3f)
  81   81  
  82   82  #ifndef _LOCALE_T
  83   83  #define _LOCALE_T
  84   84  typedef struct _locale *locale_t;
  85   85  #endif
  86   86  
  87      -#if     defined(__STDC__)
  88   87  extern locale_t duplocale(locale_t);
  89   88  extern void     freelocale(locale_t);
  90   89  extern locale_t newlocale(int, const char *, locale_t);
  91   90  extern locale_t uselocale(locale_t);
  92      -#else   /* __STDC__ */
  93      -extern locale_t duplocale();
  94      -extern void     freelocale();
  95      -extern locale_t newlocale();
  96      -extern locale_t uselocale();
  97      -#endif  /* __STDC__ */
  98   91  
  99   92  #define LC_GLOBAL_LOCALE        (__global_locale())
 100   93  extern locale_t                 __global_locale(void);
 101   94  
 102   95  #endif  /* defined(_XPG7) || !defined(_STRICT_SYMBOLS) */
 103   96  
 104   97  #ifdef  __cplusplus
 105   98  }
 106   99  #endif
 107  100  
 108  101  #endif  /* _LOCALE_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX