summaryrefslogtreecommitdiff
path: root/progs
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2006-01-30 17:12:10 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2006-01-30 17:12:10 +0000
commit781c54a5b84cb9af6d8e760c6a4222ed13bbdf98 (patch)
treea2d5f9e97829cc029d6734b73e118a59f195cf16 /progs
parent6a36407a00a6205a120e710394ba98bffa5a74aa (diff)
silence warning about duplicate M_PI definition
Diffstat (limited to 'progs')
-rw-r--r--progs/tests/jkrahntest.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/progs/tests/jkrahntest.c b/progs/tests/jkrahntest.c
index 520dbb84e7..85bda8d015 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 <stdlib.h>
#include <unistd.h>
#include <math.h>
+
+#ifndef M_PI
#define M_PI 3.14159
+#endif
+
#define DEGTOR (M_PI/180.0)
static int AttributeList[] = { GLX_RGBA, GLX_DOUBLEBUFFER, None };