Fix preprocessor error for newer GCC.
This commit is contained in:
parent
b059e92cdf
commit
176d1c94fb
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=87451
20
graphics/ruby-opengl/files/patch-glut.c
Normal file
20
graphics/ruby-opengl/files/patch-glut.c
Normal file
@ -0,0 +1,20 @@
|
||||
--- glut.c.orig Fri Jan 7 01:37:43 2000
|
||||
+++ glut.c Thu Aug 21 23:46:38 2003
|
||||
@@ -15,7 +15,7 @@
|
||||
static VALUE _funcname = Qnil; \
|
||||
static void glut_ ## _funcname ## Callback(); \
|
||||
static VALUE \
|
||||
-glut_ ## _funcname ## (obj,arg1) \
|
||||
+glut_ ## _funcname (obj,arg1) \
|
||||
VALUE obj,arg1; \
|
||||
{ \
|
||||
int win; \
|
||||
@@ -25,7 +25,7 @@
|
||||
if (win == 0) \
|
||||
rb_raise(rb_eRuntimeError, "GLUT.%s needs current window", #_funcname); \
|
||||
rb_ary_store(_funcname, win, arg1); \
|
||||
- glut ## _funcname ## (glut_ ## _funcname ## Callback); \
|
||||
+ glut ## _funcname (glut_ ## _funcname ## Callback); \
|
||||
return Qnil; \
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user