Mercurial > mxe-octave
annotate src/cairo-2-static-init.patch @ 5895:2db7f803d55d release
librsb: Update to version 1.2.0.10 (bug #60042).
* src/librsb.mk: Update version and checksum. Remove work-around for fixed bug.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Sun, 19 Sep 2021 14:32:07 +0200 |
parents | 6aaa1723e277 |
children |
rev | line source |
---|---|
2613 | 1 This file is part of MXE. |
2 See index.html for further information. | |
3 | |
4 When DllMain is not being run, we need to initialize the font face mutex before using it. | |
5 | |
6 diff --git a/src/win32/cairo-win32-font.c b/src/win32/cairo-win32-font.c | |
7 index a65d81b..31d854d 100644 | |
8 --- a/src/win32/cairo-win32-font.c | |
9 +++ b/src/win32/cairo-win32-font.c | |
3167
6aaa1723e277
[MSVC] enable Cairo compilation (and bump version to 1.12.14)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
2613
diff
changeset
|
10 @@ -1912,6 +1912,10 @@ _cairo_win32_font_face_hash_table_destroy (void) |
2613 | 11 { |
12 cairo_hash_table_t *hash_table; | |
3167
6aaa1723e277
[MSVC] enable Cairo compilation (and bump version to 1.12.14)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
2613
diff
changeset
|
13 |
6aaa1723e277
[MSVC] enable Cairo compilation (and bump version to 1.12.14)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
2613
diff
changeset
|
14 +#ifndef DLL_EXPORT |
2613 | 15 + CAIRO_MUTEX_INITIALIZE (); |
3167
6aaa1723e277
[MSVC] enable Cairo compilation (and bump version to 1.12.14)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
2613
diff
changeset
|
16 +#endif |
2613 | 17 + |
18 /* We manually acquire the lock rather than calling | |
19 * _cairo_win32_font_face_hash_table_lock simply to avoid creating | |
20 * the table only to destroy it again. */ | |
3167
6aaa1723e277
[MSVC] enable Cairo compilation (and bump version to 1.12.14)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
2613
diff
changeset
|
21 @@ -1927,6 +1929,10 @@ _cairo_win32_font_face_hash_table_destroy (void) |
2613 | 22 static cairo_hash_table_t * |
23 _cairo_win32_font_face_hash_table_lock (void) | |
24 { | |
3167
6aaa1723e277
[MSVC] enable Cairo compilation (and bump version to 1.12.14)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
2613
diff
changeset
|
25 +#ifndef DLL_EXPORT |
2613 | 26 + CAIRO_MUTEX_INITIALIZE (); |
3167
6aaa1723e277
[MSVC] enable Cairo compilation (and bump version to 1.12.14)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
2613
diff
changeset
|
27 +#endif |
2613 | 28 + |
29 CAIRO_MUTEX_LOCK (_cairo_win32_font_face_mutex); | |
30 | |
31 if (unlikely (cairo_win32_font_face_hash_table == NULL)) |