Navigation Menu

Skip to content

Commit

Permalink
[libc] Add stdbool.h standard header
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Brown <mcb30@ipxe.org>
  • Loading branch information
mcb30 committed Apr 10, 2017
1 parent fd6d1f4 commit ffb5fe4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/include/curses.h
Expand Up @@ -2,6 +2,7 @@
#define CURSES_H

#include <stdint.h>
#include <stdbool.h>
#include <stdarg.h>
#include <ipxe/console.h>

Expand All @@ -25,7 +26,6 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
#undef TRUE
#define TRUE (1)

typedef int bool;
typedef uint32_t chtype;
typedef uint32_t attr_t;

Expand Down
10 changes: 10 additions & 0 deletions src/include/stdbool.h
@@ -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 */

0 comments on commit ffb5fe4

Please sign in to comment.