mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-14 19:36:38 +03:00
Merge pull request #5462 from adrian-the-git/master
Fix build with libraqm < 0.7.0
This commit is contained in:
commit
2bc754e102
|
@ -277,7 +277,8 @@ text_layout_raqm(
|
|||
direction = RAQM_DIRECTION_LTR;
|
||||
} else if (strcmp(dir, "ttb") == 0) {
|
||||
direction = RAQM_DIRECTION_TTB;
|
||||
#if !defined(RAQM_VERSION_ATLEAST) || !RAQM_VERSION_ATLEAST(0, 7, 0)
|
||||
#if !defined(RAQM_VERSION_ATLEAST)
|
||||
/* RAQM_VERSION_ATLEAST was added in Raqm 0.7.0 */
|
||||
PyErr_SetString(
|
||||
PyExc_ValueError,
|
||||
"libraqm 0.7 or greater required for 'ttb' direction");
|
||||
|
|
Loading…
Reference in New Issue
Block a user