Changeset fe73d0c


Ignore:
Timestamp:
Jun 19, 2011, 12:07:25 AM (13 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.10, release-1.8, release-1.9
Children:
fcc0936, 24a791f
Parents:
d1d68e0
git-author:
David Benjamin <davidben@mit.edu> (04/05/11 12:54:11)
git-committer:
David Benjamin <davidben@mit.edu> (06/19/11 00:07:25)
Message:
Just require stdbool.h and tell ncurses to use it

Now that Solaris' stdbool.h works for us, we may as well just require
it. The preamble is repetitive and didn't actually work anyway. (It
conflicts with ncurses' attempts to redefine bool when stdbool.h is
unavailable or disabled.)

We may need to add a different preamble later if we care about including
these headers in C++ (Solaris has a C++-incompatible stdbool.h), but we
can deal with that later.
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • configure.ac

    rd1d68e0 rfe73d0c  
    8181AC_HEADER_STDC
    8282AC_HEADER_SYS_WAIT
    83 AC_HEADER_STDBOOL
    84 AC_CHECK_HEADERS(strings.h sys/ioctl.h sys/filio.h unistd.h)
     83AC_CHECK_HEADERS(stdbool.h strings.h sys/ioctl.h sys/filio.h unistd.h)
    8584
    8685dnl Add CFLAGS for embeded perl
  • libfaim/aim.h

    r63de71c rfe73d0c  
    1818
    1919#include "config.h"
    20 #ifdef HAVE_STDBOOL_H
    2120#include <stdbool.h>
    22 #else
    23 #ifndef HAVE__BOOL
    24 #define _Bool signed char
    25 #endif
    26 #define bool _Bool
    27 #define false 0
    28 #define true 1
    29 #define __bool_true_false_are_defined 1
    30 #endif  /* HAVE_STDBOOL_H */
    3121
    3222#include <stdio.h>
  • owl.h

    r33b6431b rfe73d0c  
    1414#include "compat/compat.h"
    1515
    16 #ifdef HAVE_STDBOOL_H
    1716#include <stdbool.h>
    18 #else
    19 #ifndef HAVE__BOOL
    20 #define _Bool signed char
    21 #endif
    22 #define bool _Bool
    23 #define false 0
    24 #define true 1
    25 #define __bool_true_false_are_defined 1
    26 #endif  /* HAVE_STDBOOL_H */
    2717
    2818#ifndef OWL_PERL
     19#define NCURSES_ENABLE_STDBOOL_H 1
    2920#include <curses.h>
    3021#include <panel.h>
  • window.h

    r4cc49bc rfe73d0c  
    55#include <glib-object.h>
    66
    7 #ifdef HAVE_STDBOOL_H
    87#include <stdbool.h>
    9 #else
    10 #ifndef HAVE__BOOL
    11 #define _Bool signed char
    12 #endif
    13 #define bool _Bool
    14 #define false 0
    15 #define true 1
    16 #define __bool_true_false_are_defined 1
    17 #endif  /* HAVE_STDBOOL_H */
    188
    199G_BEGIN_DECLS
Note: See TracChangeset for help on using the changeset viewer.