]> git.sesse.net Git - vlc/blob - extras/contrib/src/Patches/fontconfig-noxml2.patch
ac7515bf75f1b8e2f3835b831a83955637cd3591
[vlc] / extras / contrib / src / Patches / fontconfig-noxml2.patch
1 --- fontconfig/src/fcxml.c      2009-08-13 16:07:13.000000000 +0200
2 +++ fontconfig.new/src/fcxml.c  2009-08-13 16:05:41.000000000 +0200
3 @@ -23,6 +23,8 @@
4   */
5  
6  #include "fcint.h"
7 +
8 +#if 0
9  #include <fcntl.h>
10  #include <stdarg.h>
11  #include <dirent.h>
12 @@ -58,6 +60,8 @@
13  #undef STRICT
14  #endif
15  
16 +#endif
17 +
18  static void
19  FcExprDestroy (FcExpr *e);
20  
21 @@ -71,6 +75,7 @@
22      free (test);
23  }
24  
25 +#if 0
26  static FcExpr *
27  FcExprCreateInteger (FcConfig *config, int i)
28  {
29 @@ -179,7 +184,7 @@
30      }
31      return e;
32  }
33 -
34 +#endif
35  static void
36  FcExprDestroy (FcExpr *e)
37  {
38 @@ -255,6 +260,7 @@
39      free (e);
40  }
41  
42 +#if 0
43  typedef enum _FcElement {
44      FcElementNone,
45      FcElementFontconfig,
46 @@ -2373,6 +2379,7 @@
47      const FcChar8    *bs = *((FcChar8 **) b);
48      return FcStrCmp (as, bs);
49  }
50 +#endif
51  
52  static FcBool
53  FcConfigParseAndLoadDir (FcConfig      *config,
54 @@ -2380,6 +2387,9 @@
55                          const FcChar8  *dir,
56                          FcBool         complain)
57  {
58 +    return FcFalse;
59 +}
60 +#if 0
61      DIR                    *d;
62      struct dirent   *e;
63      FcBool         ret = FcTrue;
64 @@ -2589,3 +2599,4 @@
65  #define __fcxml__
66  #include "fcaliastail.h"
67  #undef __fcxml__
68 +#endif
69 diff -ruN fontconfig/src/fcxml.c fontconfig.new/src/fcxml.c
70 --- fontconfig/src/fcxml.c      2009-08-13 16:08:49.000000000 +0200
71 +++ fontconfig.new/src/fcxml.c  2009-08-19 00:03:35.000000000 +0200
72 @@ -2466,13 +2466,18 @@
73  bail0:
74      return ret || !complain;
75  }
76 +#endif
77 +
78  
79  FcBool
80  FcConfigParseAndLoad (FcConfig     *config,
81                       const FcChar8 *name,
82                       FcBool        complain)
83  {
84 +    return FcFalse;
85 +}
86  
87 +#if 0
88      XML_Parser     p;
89      FcChar8        *filename;
90      int                    fd;