Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/head/iso/time_iso.h
          +++ new/usr/src/head/iso/time_iso.h
↓ open down ↓ 14 lines elided ↑ open up ↑
  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  /*      Copyright (c) 1988 AT&T */
  23   23  /*        All Rights Reserved   */
  24   24  
  25      -
  26   25  /*
       26 + * Copyright 2014 Garrett D'Amore <garrett@damore.org>
       27 + *
  27   28   * Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
  28   29   * Use is subject to license terms.
  29   30   */
  30   31  
  31   32  /*
  32   33   * An application should not include this header directly.  Instead it
  33   34   * should be included only through the inclusion of other Sun headers.
  34   35   *
  35   36   * The contents of this header is limited to identifiers specified in the
  36   37   * C Standard.  Any new identifiers specified in future amendments to the
  37   38   * C Standard must be placed in this header.  If these new identifiers
  38   39   * are required to also be in the C++ Standard "std" namespace, then for
  39   40   * anything other than macro definitions, corresponding "using" directives
  40   41   * must also be added to <time.h.h>.
  41   42   */
  42   43  
  43   44  #ifndef _ISO_TIME_ISO_H
  44   45  #define _ISO_TIME_ISO_H
  45   46  
  46      -#pragma ident   "%Z%%M% %I%     %E% SMI" /* SVr4.0 1.18 */
  47      -
  48   47  #include <sys/feature_tests.h>
  49   48  
  50   49  #ifdef  __cplusplus
  51   50  extern "C" {
  52   51  #endif
  53   52  
  54   53  #if __cplusplus >= 199711L
  55   54  namespace std {
  56   55  #endif
  57   56  
↓ open down ↓ 32 lines elided ↑ open up ↑
  90   89          int     tm_hour;
  91   90          int     tm_mday;
  92   91          int     tm_mon;
  93   92          int     tm_year;
  94   93          int     tm_wday;
  95   94          int     tm_yday;
  96   95          int     tm_isdst;
  97   96  };
  98   97  
  99   98  
 100      -#if defined(__STDC__)
 101      -
 102   99  extern char *asctime(const struct tm *);
 103  100  extern clock_t clock(void);
 104  101  extern char *ctime(const time_t *);
 105  102  extern double difftime(time_t, time_t);
 106  103  extern struct tm *gmtime(const time_t *);
 107  104  extern struct tm *localtime(const time_t *);
 108  105  extern time_t mktime(struct tm *);
 109  106  extern time_t time(time_t *);
 110  107  extern size_t strftime(char *_RESTRICT_KYWD, size_t, const char *_RESTRICT_KYWD,
 111  108          const struct tm *_RESTRICT_KYWD);
 112  109  
 113      -#else /* __STDC__ */
 114      -
 115      -extern char *asctime();
 116      -extern clock_t clock();
 117      -extern char *ctime();
 118      -extern double difftime();
 119      -extern struct tm *gmtime();
 120      -extern struct tm *localtime();
 121      -extern time_t mktime();
 122      -extern time_t time();
 123      -extern size_t strftime();
 124      -
 125      -#endif  /* __STDC__ */
 126      -
 127  110  #if __cplusplus >= 199711L
 128  111  }
 129  112  #endif /* end of namespace std */
 130  113  
 131  114  #ifdef  __cplusplus
 132  115  }
 133  116  #endif
 134  117  
 135  118  #endif  /* _ISO_TIME_ISO_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX