// Modifiers for Data Types used to self document code.\r
// This concept is borrowed for UEFI specification.\r
//\r
-#ifndef IN\r
-//\r
-// Some other envirnments use this construct, so #ifndef to prevent\r
-// mulitple definition.\r
-//\r
#define IN\r
#define OUT\r
#define OPTIONAL\r
-#endif\r
\r
-//\r
-// Constants. They may exist in other build structures, so #ifndef them.\r
-//\r
-#ifndef TRUE\r
//\r
// UEFI specification claims 1 and 0. We are concerned about the \r
// complier portability so we did it this way.\r
//\r
#define TRUE ((BOOLEAN)(1==1))\r
-#endif\r
-\r
-#ifndef FALSE\r
#define FALSE ((BOOLEAN)(0==1))\r
-#endif\r
\r
-#ifndef NULL\r
#define NULL ((VOID *) 0)\r
-#endif\r
\r
#define BIT0 0x00000001\r
#define BIT1 0x00000002\r
//\r
// Also support coding convention rules for var arg macros\r
//\r
-#ifndef VA_START\r
-\r
typedef CHAR8 *VA_LIST;\r
#define VA_START(ap, v) (ap = (VA_LIST) & (v) + _INT_SIZE_OF (v))\r
#define VA_ARG(ap, t) (*(t *) ((ap += _INT_SIZE_OF (t)) - _INT_SIZE_OF (t)))\r
#define VA_END(ap) (ap = (VA_LIST) 0)\r
\r
-#endif\r
-\r
//\r
// Macro that returns the byte offset of a field in a data structure. \r
//\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
**/\r
\r
-#ifndef _ALERT_STANDARD_FORMAT_TABLE_H\r
-#define _ALERT_STANDARD_FORMAT_TABLE_H\r
+#ifndef _ALERT_STANDARD_FORMAT_TABLE_H_\r
+#define _ALERT_STANDARD_FORMAT_TABLE_H_\r
\r
#include <IndustryStandard/Acpi.h>\r
\r
//\r
// Part 2, section 16: Return Codes\r
//\r
-#ifndef TPM_BASE\r
-#error "TPM Error Codes require definition of TPM_BASE"\r
-#endif\r
\r
#define TPM_VENDOR_ERROR TPM_Vendor_Specific32\r
#define TPM_NON_FATAL 0x00000800\r