]> git.proxmox.com Git - mirror_edk2.git/blobdiff - StdLib/Include/stdbool.h
Standard Libraries for EDK II.
[mirror_edk2.git] / StdLib / Include / stdbool.h
diff --git a/StdLib/Include/stdbool.h b/StdLib/Include/stdbool.h
new file mode 100644 (file)
index 0000000..42dcd86
--- /dev/null
@@ -0,0 +1,34 @@
+/** @file\r
+  The header <stdbool.h> defines four macros: bool, true, false,\r
+  and __bool_true_false_are_defined.\r
+\r
+  The macro bool expands to _Bool.\r
+\r
+  The remaining three macros are suitable for use in #if preprocessing\r
+  directives. They are true, which expands to the integer constant 1,\r
+  false, which expands to the integer constant 0, and\r
+  __bool_true_false_are_defined which expands to the integer constant 1.\r
+\r
+  A program may undefine and perhaps then redefine the\r
+  macros bool, true, and false.\r
+\r
+  Copyright (c) 2010, Intel Corporation. All rights reserved.<BR>\r
+  This program and the accompanying materials are licensed and made available under\r
+  the terms and conditions of the BSD License that accompanies this distribution.\r
+  The full text of the license may be found at\r
+  http://opensource.org/licenses/bsd-license.php.\r
+\r
+  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+\r
+**/\r
+#ifndef _STDBOOL_H\r
+#define _STDBOOL_H\r
+#include  <sys/EfiCdefs.h>\r
+\r
+#define bool  _Bool\r
+#define true  1\r
+#define false 0\r
+#define __bool_true_false_are_defined 1\r
+\r
+#endif    /* _STDBOOL_H */\r