Index: third_party/hunspell/src/hunspell/hunspell.hxx |
diff --git a/third_party/hunspell/src/hunspell/hunspell.hxx b/third_party/hunspell/src/hunspell/hunspell.hxx |
index f24843b01668baf5dc6a0004261fb6ce771cd577..a35df8369b2619f4bab3d6d26ba0214e799e77fa 100644 |
--- a/third_party/hunspell/src/hunspell/hunspell.hxx |
+++ b/third_party/hunspell/src/hunspell/hunspell.hxx |
@@ -87,9 +87,12 @@ |
#define MAXSUGGESTION 15 |
#define MAXSHARPS 5 |
-#define MAXWORDLEN 176 |
-#if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1) |
+#ifndef MAXWORDLEN |
+#define MAXWORDLEN 100 |
+#endif |
+ |
+#if defined __GNUC__ && (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1)) |
# define H_DEPRECATED __attribute__((__deprecated__)) |
#elif defined(_MSC_VER) && (_MSC_VER >= 1300) |
# define H_DEPRECATED __declspec(deprecated) |