mirror of
https://github.com/ipxe/ipxe
synced 2025-12-12 06:22:01 +03:00
[libc] Add stdbool.h standard header
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
#define CURSES_H
|
#define CURSES_H
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
#include <stdbool.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <ipxe/console.h>
|
#include <ipxe/console.h>
|
||||||
|
|
||||||
@@ -25,7 +26,6 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
|
|||||||
#undef TRUE
|
#undef TRUE
|
||||||
#define TRUE (1)
|
#define TRUE (1)
|
||||||
|
|
||||||
typedef int bool;
|
|
||||||
typedef uint32_t chtype;
|
typedef uint32_t chtype;
|
||||||
typedef uint32_t attr_t;
|
typedef uint32_t attr_t;
|
||||||
|
|
||||||
|
|||||||
10
src/include/stdbool.h
Normal file
10
src/include/stdbool.h
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
#ifndef _STDBOOL_H
|
||||||
|
#define _STDBOOL_H
|
||||||
|
|
||||||
|
FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
|
||||||
|
|
||||||
|
#define bool _Bool
|
||||||
|
#define true 1
|
||||||
|
#define false 0
|
||||||
|
|
||||||
|
#endif /* _STDBOOL_H */
|
||||||
Reference in New Issue
Block a user