Changeset 75b0adb


Ignore:
Timestamp:
Apr 16, 2010, 6:34:50 PM (11 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, release-1.6, release-1.7, release-1.8, release-1.9
Children:
13d6a53
Parents:
ef4700c
git-author:
Nelson Elhage <nelhage@mit.edu> (04/10/10 17:31:40)
git-committer:
Nelson Elhage <nelhage@mit.edu> (04/16/10 18:34:50)
Message:
Check for stdbool.h in configure.

Athena 9 Solaris doesn't have a working stdbool.h. The chain of
defines and ifdefs is slightly modified from the "Particular Headers"
section of autoconf's info pages.
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • configure.ac

    re2cbbbe r75b0adb  
    7272AC_HEADER_STDC
    7373AC_HEADER_SYS_WAIT
     74AC_HEADER_STDBOOL
    7475AC_CHECK_HEADERS(strings.h sys/ioctl.h sys/filio.h unistd.h)
    7576
  • owl.h

    r98d296d r75b0adb  
    1010#define INC_OWL_H
    1111
     12#ifdef HAVE_STDBOOL_H
    1213#include <stdbool.h>
     14#else
     15#ifndef HAVE__BOOL
     16#define _Bool signed char
     17#endif
     18#define bool _Bool
     19#define false 0
     20#define true 1
     21#define __bool_true_false_are_defined 1
     22#endif  /* HAVE_STDBOOL_H */
     23
    1324#ifndef OWL_PERL
    1425#include <curses.h>
Note: See TracChangeset for help on using the changeset viewer.