This is needed because the CAIRO_STATUS_INVALID_SIZE constant was added in that version. 1.10 is old enough that this change shouldn't cause problems for anyone. For example, Debian Wheezy (2013) has Cairo 1.12.2.