[libbluray-devel] Fix compile without freetype with compilers that don' t allow structs without members.

ace20022 git at videolan.org
Tue Apr 7 17:53:05 CEST 2015


libbluray | branch: master | ace20022 <ace20022 at ymail.com> | Tue Apr  7 17:28:28 2015 +0200| [6ce111f88f4ca2fb52c3b94eee19ffbdc4aa5078] | committer: hpi1

Fix compile without freetype with compilers that don't allow structs without members.

> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=6ce111f88f4ca2fb52c3b94eee19ffbdc4aa5078
---

 src/libbluray/decoders/textst_render.c |   11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/src/libbluray/decoders/textst_render.c b/src/libbluray/decoders/textst_render.c
index 3cbd66d..8d1527e 100644
--- a/src/libbluray/decoders/textst_render.c
+++ b/src/libbluray/decoders/textst_render.c
@@ -45,24 +45,25 @@
 /*
  * data
  */
-
-typedef struct {
 #ifdef HAVE_FT2
+typedef struct {
+
   FT_Face  face;
   void    *mem;
-#endif
+
 } FONT_DATA;
 
 struct textst_render {
-#ifdef HAVE_FT2
+
   FT_Library     ft_lib;
 
   unsigned       font_count;
   FONT_DATA     *font;
 
   bd_char_code_e char_code;
-#endif
+
 };
+#endif
 
 /*
  * init / free



More information about the libbluray-devel mailing list