Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/head/mon.h
          +++ new/usr/src/head/mon.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 1997-2003 Sun Microsystems, Inc.  All rights reserved.
  28   29   * Use is subject to license terms.
  29   30   */
  30   31  
  31   32  #ifndef _MON_H
  32   33  #define _MON_H
  33   34  
  34      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  35      -
  36   35  #ifdef  __cplusplus
  37   36  extern "C" {
  38   37  #endif
  39   38  
  40   39  /*
  41   40   * Inclusion of <sys/types.h> will break SVID namespace, hence only
  42   41   * the size_t type is defined in this header.
  43   42   */
  44   43  #if !defined(_SIZE_T) || __cplusplus >= 199711L
  45   44  #define _SIZE_T
↓ open down ↓ 22 lines elided ↑ open up ↑
  68   67  #define MSCALE0 4
  69   68  
  70   69  #ifndef NULL
  71   70  #if defined(_LP64)
  72   71  #define NULL    0L
  73   72  #else
  74   73  #define NULL    0
  75   74  #endif
  76   75  #endif
  77   76  
  78      -#if defined(__STDC__)
  79   77  extern void monitor(int (*)(void), int (*)(void), WORD *, size_t, size_t);
  80      -#else
  81      -extern void monitor();
  82      -#endif
  83   78  
  84   79  #ifdef  __cplusplus
  85   80  }
  86   81  #endif
  87   82  
  88   83  #endif  /* _MON_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX