summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWerner Lemberg <wl@gnu.org>2010-07-03 15:31:38 +0200
committerWerner Lemberg <wl@gnu.org>2010-07-03 15:31:38 +0200
commite0176397100a165776c3d28e03c2d4587433cad6 (patch)
tree5bbcdf0bdce632b3ed901e3614d3fbe253822259
parentb2ea64bcc6c385a8e8318f9c759450a07df58b6d (diff)
downloadfreetype2-e0176397100a165776c3d28e03c2d4587433cad6.tar.gz
Make ftgrays.c compile stand-alone again.
* src/smooth/ftgrays.c [_STANDALONE_]: Include `stddef.h'. (FT_INT_MAX, FT_PtrDist)[_STANDALONE_]: Define.
-rw-r--r--ChangeLog7
-rw-r--r--src/smooth/ftgrays.c4
2 files changed, 11 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index a046796df..189b79b4a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2010-07-03 Werner Lemberg <wl@gnu.org>
+
+ Make ftgrays.c compile stand-alone again.
+
+ * src/smooth/ftgrays.c [_STANDALONE_]: Include `stddef.h'.
+ (FT_INT_MAX, FT_PtrDist)[_STANDALONE_]: Define.
+
2010-07-02 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
Additional fix for Savannah bug #30306.
diff --git a/src/smooth/ftgrays.c b/src/smooth/ftgrays.c
index da530f330..8fb593140 100644
--- a/src/smooth/ftgrays.c
+++ b/src/smooth/ftgrays.c
@@ -103,10 +103,12 @@
#include <stdarg.h>
#endif
+#include <stddef.h>
#include <string.h>
#include <setjmp.h>
#include <limits.h>
#define FT_UINT_MAX UINT_MAX
+#define FT_INT_MAX INT_MAX
#define ft_memset memset
@@ -114,6 +116,8 @@
#define ft_longjmp longjmp
#define ft_jmp_buf jmp_buf
+typedef ptrdiff_t FT_PtrDist;
+
#define ErrRaster_Invalid_Mode -2
#define ErrRaster_Invalid_Outline -1