mirror of
https://github.com/curl/curl.git
synced 2026-08-25 18:03:36 +03:00
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:
parent
39aac63521
commit
69565afab0
10 changed files with 78 additions and 49 deletions
11
src/setup.h
11
src/setup.h
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue