From 781c54a5b84cb9af6d8e760c6a4222ed13bbdf98 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Mon, 30 Jan 2006 17:12:10 +0000 Subject: silence warning about duplicate M_PI definition --- progs/tests/jkrahntest.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'progs/tests') diff --git a/progs/tests/jkrahntest.c b/progs/tests/jkrahntest.c index 520dbb84e78..85bda8d0152 100644 --- a/progs/tests/jkrahntest.c +++ b/progs/tests/jkrahntest.c @@ -1,4 +1,4 @@ -/* $Id: jkrahntest.c,v 1.1 2002/06/16 03:57:48 brianp Exp $ */ +/* $Id: jkrahntest.c,v 1.2 2006/01/30 17:12:10 brianp Exp $ */ /* This is a good test for glXSwapBuffers on non-current windows, * and the glXCopyContext function. Fixed several Mesa/DRI bugs with @@ -25,7 +25,11 @@ #include #include #include + +#ifndef M_PI #define M_PI 3.14159 +#endif + #define DEGTOR (M_PI/180.0) static int AttributeList[] = { GLX_RGBA, GLX_DOUBLEBUFFER, None }; -- cgit v1.2.3