]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Source/TianoTools/Include/Common/BaseTypes.h
Support building on x64 hosts.
[mirror_edk2.git] / Tools / Source / TianoTools / Include / Common / BaseTypes.h
index 86c3c71fb3bb7afbfb4b5a5203ef0d80b580c340..b87e7141e6d063baa554749df0b798da30cc22d4 100644 (file)
@@ -23,6 +23,7 @@
 // Include processor specific binding\r
 //\r
 #include <ProcessorBind.h>\r
+#include <stdarg.h>\r
 \r
 #define MEMORY_FENCE()  MemoryFence ()\r
 #define BREAKPOINT()    CpuBreakpoint ()\r
@@ -123,10 +124,15 @@ typedef struct {
 //\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
+// 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
+// Use the native arguments for tools.\r
+#define VA_START va_start\r
+#define VA_ARG   va_arg\r
+#define VA_END   va_end\r
+#define VA_LIST  va_list\r
 \r
 #endif\r
 \r