[PATCH] D110224: Wrap xar/xar.h include in extern "C" block

Sylvestre Ledru via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 23 00:37:53 PDT 2021


This revision was automatically updated to reflect the committed changes.
Closed by commit rG08ef24f6abdf: Wrap xar/xar.h include in extern "C" block (authored by glandium, committed by sylvestre.ledru).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D110224/new/

https://reviews.llvm.org/D110224

Files:
  lld/MachO/SyntheticSections.cpp


Index: lld/MachO/SyntheticSections.cpp
===================================================================
--- lld/MachO/SyntheticSections.cpp
+++ lld/MachO/SyntheticSections.cpp
@@ -27,7 +27,9 @@
 
 #ifdef LLVM_HAVE_LIBXAR
 #include <fcntl.h>
+extern "C" {
 #include <xar/xar.h>
+}
 #endif
 
 using namespace llvm;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D110224.374458.patch
Type: text/x-patch
Size: 316 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210923/70d38e35/attachment.bin>


More information about the llvm-commits mailing list