diff options
author | knu <knu@FreeBSD.org> | 2003-08-21 22:47:55 +0800 |
---|---|---|
committer | knu <knu@FreeBSD.org> | 2003-08-21 22:47:55 +0800 |
commit | 93a1f7d9dc71d211d6d61654944567af6a14cd17 (patch) | |
tree | 1883b6d09b16710bd6f1d4f157901b0f3529148b /graphics | |
parent | 13aea4318459ebf0118fbca361c48d3dde0b7027 (diff) | |
download | freebsd-ports-gnome-93a1f7d9dc71d211d6d61654944567af6a14cd17.tar.gz freebsd-ports-gnome-93a1f7d9dc71d211d6d61654944567af6a14cd17.tar.zst freebsd-ports-gnome-93a1f7d9dc71d211d6d61654944567af6a14cd17.zip |
Fix preprocessor error for newer GCC.
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/ruby-opengl/files/patch-glut.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/graphics/ruby-opengl/files/patch-glut.c b/graphics/ruby-opengl/files/patch-glut.c new file mode 100644 index 000000000000..828ad84cc652 --- /dev/null +++ b/graphics/ruby-opengl/files/patch-glut.c @@ -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; \ + } + |