Skip to content

Commit

Permalink
[build] Remove a level of quoting from CAIRO_PARSE_VERSION.
Browse files Browse the repository at this point in the history
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\].
  • Loading branch information
M Joonas Pihlaja committed Jun 20, 2009
1 parent 3bad3ef commit 5733d8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion acinclude.m4
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ m4_define([CAIRO_PARSE_VERSION],dnl
m4_translit(dnl
m4_bpatsubst(m4_include(cairo-version.h),
[^.define \([a-zA-Z0-9_]*\) *\([0-9][0-9]*\)],
[[m4_define(\1, \[\2\])]]),
[[m4_define(\1, \2)]]),
[A-Z], [a-z])dnl
)dnl

Expand Down

0 comments on commit 5733d8d

Please sign in to comment.