summaryrefslogtreecommitdiffstats
path: root/extra/sdl_ttf/sdl_ttf-noftinternals.patch
diff options
context:
space:
mode:
Diffstat (limited to 'extra/sdl_ttf/sdl_ttf-noftinternals.patch')
-rw-r--r--extra/sdl_ttf/sdl_ttf-noftinternals.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/extra/sdl_ttf/sdl_ttf-noftinternals.patch b/extra/sdl_ttf/sdl_ttf-noftinternals.patch
new file mode 100644
index 000000000..2d536ff7c
--- /dev/null
+++ b/extra/sdl_ttf/sdl_ttf-noftinternals.patch
@@ -0,0 +1,24 @@
+diff -Nru SDL_ttf-2.0.8.orig/SDL_ttf.c SDL_ttf-2.0.8/SDL_ttf.c
+--- SDL_ttf-2.0.8.orig/SDL_ttf.c 2006-05-01 11:26:17.000000000 +0200
++++ SDL_ttf-2.0.8/SDL_ttf.c 2007-01-03 13:32:42.438178717 +0100
+@@ -47,9 +47,9 @@
+ #include <freetype/freetype.h>
+ #include <freetype/ftoutln.h>
+ #include <freetype/ttnameid.h>
+-*/
+-#include <freetype/internal/ftobjs.h>
+
++#include <freetype/internal/ftobjs.h>
++*/
+ #ifndef FT_OPEN_STREAM
+ #define FT_OPEN_STREAM ft_open_stream
+ #endif
+@@ -278,7 +278,7 @@
+ }
+ memset(stream, 0, sizeof(*stream));
+
+- stream->memory = library->memory;
++ stream->memory = NULL;
+ stream->read = RWread;
+ stream->descriptor.pointer = src;
+ stream->pos = (unsigned long)position;