diff options
| author | Brett Koonce | 2014-03-14 13:54:33 -0500 |
|---|---|---|
| committer | Brett Koonce | 2014-03-14 14:38:54 -0500 |
| commit | 9d1135f7c1050e600e2775b833ddda9b8ace1176 (patch) | |
| tree | 7fa7a1295e31f6f2095792b2e0fa88eee919a783 /Library/Formula | |
| parent | 88df8d17912f637b34b780bf3d2cfa10a5c4669c (diff) | |
| download | homebrew-9d1135f7c1050e600e2775b833ddda9b8ace1176.tar.bz2 | |
aspell: fix const definitions for llvm
Patch (thanks to kpachnis) from:
http://www.freebsd.org/cgi/query-pr.cgi?pr=180565&cat=
Closes #27559.
Closes #27411.
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/aspell.rb | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Library/Formula/aspell.rb b/Library/Formula/aspell.rb index 5039f5128..63888ad24 100644 --- a/Library/Formula/aspell.rb +++ b/Library/Formula/aspell.rb @@ -567,6 +567,9 @@ class Aspell < Formula resources.map(&:name) end + # const problems with llvm: http://www.freebsd.org/cgi/query-pr.cgi?pr=180565&cat= + def patches; DATA; end + def install system "./configure", "--prefix=#{prefix}" system "make install" @@ -593,3 +596,25 @@ class Aspell < Formula end end end + +__END__ +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 *******************************/ |
