Check for stdbool.h at configuration stage, and include it if available.

Check for lowercase 'bool' type at configuration stage. If not available
provide a suitable replacement with a type definition of 'unsigned char'
in setup_once.h

Move definitions of TRUE and FALSE to setup_once.h
This commit is contained in:
Yang Tse 2007-02-22 02:51:54 +00:00
parent 39aac63521
commit 69565afab0
10 changed files with 78 additions and 49 deletions

View file

@ -128,17 +128,6 @@
#include <floss.h>
#endif
#ifndef TRUE
#define TRUE 1
#endif
#ifndef FALSE
#define FALSE 0
#endif
#if !defined(__cplusplus) && !defined(__BEOS__) && !defined(__ECOS) && !defined(typedef_bool)
typedef unsigned char bool;
#define typedef_bool
#endif
#ifndef OS
#define OS "unknown"