Changeset 28da2da for owl.h


Ignore:
Timestamp:
Apr 6, 2011, 12:54:00 PM (11 years ago)
Author:
David Benjamin <davidben@mit.edu>
Children:
a006d475
Parents:
eeab49c
git-author:
David Benjamin <davidben@mit.edu> (04/05/11 12:54:11)
git-committer:
David Benjamin <davidben@mit.edu> (04/06/11 12:54:00)
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.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • owl.h

    r283ff1e r28da2da  
    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>
Note: See TracChangeset for help on using the changeset viewer.