]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/DxeReportStatusCodeLib/ReportStatusCodeLib.c
EdkCompatabilityPkg: Fix build issues with X64 clang
[mirror_edk2.git] / EdkCompatibilityPkg / Foundation / Library / EdkIIGlueLib / Library / DxeReportStatusCodeLib / ReportStatusCodeLib.c
index 35417810fdfbb14b9ab0c1203a238bb9c6add0b5..a1c232dea04300500202b86532e70e408a314db2 100644 (file)
@@ -296,11 +296,16 @@ GlueReportStatusCodeExtractDebugInfo (
 \r
   *ErrorLevel = DebugInfo->ErrorLevel;\r
 \r
+#ifdef __APPLE__\r
+  // This is non portable C code you can't assume VA_LIST is pointer\r
+  return FALSE;\r
+#else\r
   //\r
   // The first 12 * UINTN bytes of the string are really an \r
   // argument stack to support varargs on the Format string.\r
   //\r
   *Marker = (VA_LIST) (DebugInfo + 1);\r
+#endif\r
   *Format = (CHAR8 *)(((UINT64 *)*Marker) + 12);\r
 \r
   return TRUE;\r