Skip to content

Commit 5733d8d

Browse files
author
M Joonas Pihlaja
committed
[build] Remove a level of quoting from CAIRO_PARSE_VERSION.
The m4 that comes with OpenBSD gets confused by the extra quoting applied to the version number argument when building the bodies of the cairo_version_{major,minor,micro} macros using m4_bpatsubst(). Since we're making sure that the argument is always a number, we can safely use the unquoted \2 body rather than \[\2\].
1 parent 3bad3ef commit 5733d8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

acinclude.m4

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ m4_define([CAIRO_PARSE_VERSION],dnl
3838
m4_translit(dnl
3939
m4_bpatsubst(m4_include(cairo-version.h),
4040
[^.define \([a-zA-Z0-9_]*\) *\([0-9][0-9]*\)],
41-
[[m4_define(\1, \[\2\])]]),
41+
[[m4_define(\1, \2)]]),
4242
[A-Z], [a-z])dnl
4343
)dnl
4444

0 commit comments

Comments
 (0)