shithub: freetype+ttf2subf

Download patch

ref: e0176397100a165776c3d28e03c2d4587433cad6
parent: b2ea64bcc6c385a8e8318f9c759450a07df58b6d
author: Werner Lemberg <[email protected]>
date: Sat Jul 3 11:31:38 EDT 2010

Make ftgrays.c compile stand-alone again.

* src/smooth/ftgrays.c [_STANDALONE_]: Include `stddef.h'.
(FT_INT_MAX, FT_PtrDist)[_STANDALONE_]: Define.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2010-07-03  Werner Lemberg  <[email protected]>
+
+	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  <[email protected]>
 
 	Additional fix for Savannah bug #30306.
--- 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
 
@@ -113,6 +115,8 @@
 #define ft_setjmp   setjmp
 #define ft_longjmp  longjmp
 #define ft_jmp_buf  jmp_buf
+
+typedef ptrdiff_t  FT_PtrDist;
 
 
 #define ErrRaster_Invalid_Mode      -2