Oops, STR2CSTR is obsolete, use StringValuePtr() instead.
[ruby-ecore.git] / src / ecore_evas / rb_gl_x11.c
index 07331e859e980e6b849151b1f0cdd0271f217ab6..d8e7a386ee1b5939125edb629468bcb0ff9f6446 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: rb_gl_x11.c 9 2004-06-19 19:53:47Z tilman $
+ * $Id: rb_gl_x11.c 14 2004-06-20 10:33:13Z tilman $
  *
  * Copyright (C) 2004 Tilman Sauerbeck (tilman at code-monkey de)
  *
@@ -41,7 +41,7 @@ static VALUE c_init (int argc, VALUE *argv, VALUE self)
 
        if (!NIL_P (disp)) {
                Check_Type (disp, T_STRING);
-               cdisp = STR2CSTR (disp);
+               cdisp = StringValuePtr (disp);
        }
 
        for (i = 0; i < 4; i++)