Print this page
1059 curses.h conflicts with stdbool.h

Split Close
Expand all
Collapse all
          --- old/usr/src/ucbhead/curses.h
          +++ new/usr/src/ucbhead/curses.h
↓ open down ↓ 7 lines elided ↑ open up ↑
   8    8  
   9    9  /*
  10   10   * Copyright (c) 1980 Regents of the University of California.
  11   11   * All rights reserved.  The Berkeley software License Agreement
  12   12   * specifies the terms and conditions for redistribution.
  13   13   */
  14   14  
  15   15  #ifndef _CURSES_H
  16   16  #define _CURSES_H
  17   17  
  18      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  19      -
  20   18  #ifdef __cplusplus
  21   19  extern "C" {
  22   20  #endif
  23   21  
  24   22  #ifndef WINDOW
  25   23  
  26   24  #include        <stdio.h>
  27   25  #include        <sgtty.h>
  28   26  
  29   27  #undef          HZ              /* in case they've included <sys/param.h> */
  30   28  
  31      -#if !(defined(__cplusplus) && defined(_BOOL))
       29 +#if !(defined(__cplusplus) && defined(bool))
  32   30  #define bool    char
  33   31  #endif
  34   32  
  35   33  #define reg     register
  36   34  
  37   35  #define TRUE    (1)
  38   36  #define FALSE   (0)
  39   37  #define ERR     (0)
  40   38  #define OK      (1)
  41   39  
↓ open down ↓ 214 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX