Skip to content

Commit 2bc754e

Browse files
authored
Merge pull request #5462 from adrian-the-git/master
Fix build with libraqm < 0.7.0
2 parents 88ab3b5 + 0985de2 commit 2bc754e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/_imagingft.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,8 @@ text_layout_raqm(
277277
direction = RAQM_DIRECTION_LTR;
278278
} else if (strcmp(dir, "ttb") == 0) {
279279
direction = RAQM_DIRECTION_TTB;
280-
#if !defined(RAQM_VERSION_ATLEAST) || !RAQM_VERSION_ATLEAST(0, 7, 0)
280+
#if !defined(RAQM_VERSION_ATLEAST)
281+
/* RAQM_VERSION_ATLEAST was added in Raqm 0.7.0 */
281282
PyErr_SetString(
282283
PyExc_ValueError,
283284
"libraqm 0.7 or greater required for 'ttb' direction");

0 commit comments

Comments
 (0)