echo 'Creating brew-patch.diff' cat << EOF >> brew-patch.diff diff --git a/interfaces/cc/aspell.h b/interfaces/cc/aspell.h index 9c8e81b..2cd00d4 100644 --- a/interfaces/cc/aspell.h +++ b/interfaces/cc/aspell.h @@ -237,6 +237,7 @@ void delete_aspell_can_have_error(struct AspellCanHaveError * ths); /******************************** errors ********************************/ +#ifndef __cplusplus extern const struct AspellErrorInfo * const aerror_other; extern const struct AspellErrorInfo * const aerror_operation_not_supported; extern const struct AspellErrorInfo * const aerror_cant_copy; @@ -322,6 +323,7 @@ extern const struct AspellErrorInfo * const aerror_missing_magic; extern const struct AspellErrorInfo * const aerror_bad_magic; extern const struct AspellErrorInfo * const aerror_expression; extern const struct AspellErrorInfo * const aerror_invalid_expression; +#endif /******************************* speller *******************************/ EOF