]> git.pld-linux.org Git - packages/crossmingw32-fontconfig.git/blob - fontconfig-win32.patch
- updated to 2.15.0
[packages/crossmingw32-fontconfig.git] / fontconfig-win32.patch
1 --- fontconfig-2.13.1/test/test-hash.c.orig     2018-07-19 05:14:39.000000000 +0200
2 +++ fontconfig-2.13.1/test/test-hash.c  2018-09-02 12:55:21.463538823 +0200
3 @@ -47,12 +47,18 @@
4  static FcBool
5  test_add (Test *test, FcChar8 *key, FcBool replace)
6  {
7 +#ifdef _WIN32
8 +    char *uuid = "foo";
9 +#else
10      uuid_t uuid;
11 +#endif
12      void *u;
13      FcBool (*hash_add) (FcHashTable *, void *, void *);
14      FcBool ret = FcFalse;
15  
16 +#ifndef _WIN32
17      uuid_generate_random (uuid);
18 +#endif
19      if (replace)
20         hash_add = FcHashTableReplace;
21      else
22 @@ -61,7 +67,11 @@
23         return FcFalse;
24      if (!FcHashTableFind (test->table, key, &u))
25         return FcFalse;
26 +#ifdef _WIN32
27 +    ret = FcTrue;
28 +#else
29      ret = (uuid_compare (uuid, u) == 0);
30 +#endif
31      FcHashUuidFree (u);
32  
33      return ret;
34 @@ -87,7 +97,6 @@
35  main (void)
36  {
37      Test *test;
38 -    uuid_t uuid;
39      int ret = 0;
40  
41      test = init ();
42 --- fontconfig-2.13.1/test/test-bz106632.c.orig 2018-08-29 11:55:14.000000000 +0200
43 +++ fontconfig-2.13.1/test/test-bz106632.c      2018-09-02 12:56:54.126871068 +0200
44 @@ -44,6 +44,11 @@
45  #undef FcPatternDestroy
46  #include <fontconfig/fontconfig.h>
47  
48 +#ifdef WIN32
49 +#include <direct.h>
50 +#define mkdir(path,mode) _mkdir(path)
51 +#endif
52 +
53  #ifdef HAVE_MKDTEMP
54  #define fc_mkdtemp     mkdtemp
55  #else
This page took 0.046285 seconds and 3 git commands to generate.