blob: 5ea6949b38434349c1bdd203338c2512ce8c3b35 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001--- a/ar.h
2+++ b/ar.h
3@@ -20,8 +20,6 @@
4 #ifndef _AR_H
5 #define _AR_H 1
6
7-#include <sys/cdefs.h>
8-
9 /* Archive files start with the ARMAG identifying string. Then follows a
10 `struct ar_hdr', and as many bytes of member file data as its `ar_size'
11 member indicates, for each member file. */
12@@ -31,7 +29,9 @@
13
14 #define ARFMAG "`\n" /* String in ar_fmag at end of each header. */
15
16-__BEGIN_DECLS
17+#ifdef __cplusplus
18+extern "C" {
19+#endif
20
21 struct ar_hdr
22 {
23@@ -43,6 +43,8 @@ struct ar_hdr
24 char ar_fmag[2]; /* Always contains ARFMAG. */
25 };
26
27-__END_DECLS
28+#ifdef __cplusplus
29+}
30+#endif
31
32 #endif /* ar.h */