projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a36407
)
silence warning about duplicate M_PI definition
author
Brian Paul
<brian.paul@tungstengraphics.com>
Mon, 30 Jan 2006 17:12:10 +0000
(17:12 +0000)
committer
Brian Paul
<brian.paul@tungstengraphics.com>
Mon, 30 Jan 2006 17:12:10 +0000
(17:12 +0000)
progs/tests/jkrahntest.c
patch
|
blob
|
history
diff --git
a/progs/tests/jkrahntest.c
b/progs/tests/jkrahntest.c
index 520dbb84e787fc0efed84222f68c4536394c0676..85bda8d01526593af0dac53322707ab0c8ee8695 100644
(file)
--- 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 };