You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

32 lines
630 B

--- a/ar.h
+++ b/ar.h
@@ -20,8 +20,6 @@
#ifndef _AR_H
#define _AR_H 1
-#include <sys/cdefs.h>
-
/* Archive files start with the ARMAG identifying string. Then follows a
`struct ar_hdr', and as many bytes of member file data as its `ar_size'
member indicates, for each member file. */
@@ -31,7 +29,9 @@
#define ARFMAG "`\n" /* String in ar_fmag at end of each header. */
-__BEGIN_DECLS
+#ifdef __cplusplus
+extern "C" {
+#endif
struct ar_hdr
{
@@ -43,6 +43,8 @@ struct ar_hdr
char ar_fmag[2]; /* Always contains ARFMAG. */
};
-__END_DECLS
+#ifdef __cplusplus
+}
+#endif
#endif /* ar.h */