[cairo-commit:00177] rcairo/rcairo [master] Don't use CAIRO_STATUS_LAST_STATUS with cairo < 1.10.

null+rcairo at clear-code.com null+rcairo at clear-code.com
Sat Mar 31 04:51:50 UTC 2012


Kouhei Sutou	2012-03-31 13:51:50 +0900 (Sat, 31 Mar 2012)

  New Revision: 80844dc0d792b29ac0941d882d73cba8cb4b6222

  Log:
    Don't use CAIRO_STATUS_LAST_STATUS with cairo < 1.10.
    
    [ruby-gnome2-devel-en] Help me install my own program
    
    Reported by Eric C.. Thanks!!!

  Modified files:
    ext/cairo/rb_cairo_exception.c

  Modified: ext/cairo/rb_cairo_exception.c (+4 -0)
===================================================================
--- ext/cairo/rb_cairo_exception.c    2012-03-25 21:26:14 +0900 (c3b50e2)
+++ ext/cairo/rb_cairo_exception.c    2012-03-31 13:51:50 +0900 (656bf9b)
@@ -192,7 +192,11 @@ rb_cairo_check_status (cairo_status_t status)
       rb_raise (rb_eCairo_DeviceFinished, "%s", string);
       break;
 #endif
+#if CAIRO_CHECK_VERSION(1, 10, 0)
     case CAIRO_STATUS_LAST_STATUS:
+#else
+    default:
+#endif
       rb_raise (rb_eArgError, "bug: %s: %d", string, status);
       break;
     }



More information about the cairo-commit mailing list