Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/head/iso/stdlib_c99.h
          +++ new/usr/src/head/iso/stdlib_c99.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 2004 Sun Microsystems, Inc.  All rights reserved.
  24   26   * Use is subject to license terms.
  25   27   */
  26   28  
  27   29  /*
  28   30   * An application should not include this header directly.  Instead it
  29   31   * should be included only through the inclusion of other Sun headers.
  30   32   *
  31   33   * The contents of this header is limited to identifiers specified in
  32   34   * the C99 standard and in conflict with the C++ implementation of the
  33   35   * standard header.  The C++ standard may adopt the C99 standard at
  34   36   * which point it is expected that the symbols included here will
  35   37   * become part of the C++ std namespace.
  36   38   */
  37   39  
  38   40  #ifndef _ISO_STDLIB_C99_H
  39   41  #define _ISO_STDLIB_C99_H
  40   42  
  41      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  42      -
  43   43  #ifdef  __cplusplus
  44   44  extern "C" {
  45   45  #endif
  46   46  
  47   47  /*
  48   48   * The following have been added as a result of the ISO/IEC 9899:1999
  49   49   * standard. For a strictly conforming C application, visibility is
  50   50   * contingent on the value of __STDC_VERSION__ (see sys/feature_tests.h).
  51   51   * For non-strictly conforming C applications, there are no restrictions
  52   52   * on the C namespace.
  53   53   */
  54   54  
  55   55  #if defined(_LONGLONG_TYPE)
  56   56  typedef struct {
  57   57          long long       quot;
  58   58          long long       rem;
  59   59  } lldiv_t;
  60   60  #endif  /* defined(_LONGLONG_TYPE) */
  61   61  
  62      -#ifdef __STDC__
  63      -
  64   62  #if (!defined(_STRICT_STDC) && !defined(__XOPEN_OR_POSIX)) || \
  65   63          defined(_STDC_C99) || defined(__EXTENSIONS__)
  66   64  
  67   65  extern void _Exit(int);
  68   66  extern float strtof(const char *_RESTRICT_KYWD, char **_RESTRICT_KYWD);
  69   67  extern long double strtold(const char *_RESTRICT_KYWD, char **_RESTRICT_KYWD);
  70   68  
  71   69  #if defined(_LONGLONG_TYPE)
  72   70  extern long long atoll(const char *);
  73   71  extern long long llabs(long long);
  74   72  extern lldiv_t lldiv(long long, long long);
  75   73  extern long long strtoll(const char *_RESTRICT_KYWD, char **_RESTRICT_KYWD,
  76   74          int);
  77   75  extern unsigned long long strtoull(const char *_RESTRICT_KYWD,
  78   76          char **_RESTRICT_KYWD, int);
  79   77  #endif /* defined(_LONGLONG_TYPE) */
  80   78  
  81   79  #endif  /* (!defined(_STRICT_STDC) && !defined(__XOPEN_OR_POSIX)) ... */
  82   80  
  83      -#else /* __STDC__ */
  84      -
  85      -#if !defined(__XOPEN_OR_POSIX) || defined(_XPG6) || defined(__EXTENSIONS__)
  86      -
  87      -extern void _Exit();
  88      -extern float strtof();
  89      -extern long double strtold();
  90      -
  91      -#if defined(_LONGLONG_TYPE)
  92      -extern long long atoll();
  93      -extern long long llabs();
  94      -extern lldiv_t lldiv();
  95      -extern long long strtoll();
  96      -extern unsigned long long strtoull();
  97      -#endif /* defined(_LONGLONG_TYPE) */
  98      -
  99      -#endif /* !defined(__XOPEN_OR_POSIX) || defined(_XPG6)... */
 100      -
 101      -#endif /* __STDC__ */
 102      -
 103   81  #ifdef  __cplusplus
 104   82  }
 105   83  #endif
 106   84  
 107   85  #endif  /* _ISO_STDLIB_C99_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX