From f02a5f6cc55fc61229a038ac72edb3ce97cb6950 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 12 Jul 2002 15:54:01 +0000 Subject: Pedantic compiler fixes (Sven Panne) --- progs/samples/nurb.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'progs/samples/nurb.c') diff --git a/progs/samples/nurb.c b/progs/samples/nurb.c index f90c6ee91f..dc8991295e 100644 --- a/progs/samples/nurb.c +++ b/progs/samples/nurb.c @@ -216,11 +216,13 @@ static void CALLBACK ErrorCallback(GLenum which) } } +typedef void (GLAPIENTRY *callback_t)(); + static void Init(void) { theNurbs = gluNewNurbsRenderer(); - gluNurbsCallback(theNurbs, GLU_ERROR, ErrorCallback); + gluNurbsCallback(theNurbs, GLU_ERROR, (callback_t) ErrorCallback); gluNurbsProperty(theNurbs, GLU_SAMPLING_TOLERANCE, 15.0); gluNurbsProperty(theNurbs, GLU_DISPLAY_MODE, GLU_OUTLINE_PATCH); -- cgit v1.2.3