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

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