summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
Diffstat (limited to 'generic')
-rw-r--r--generic/tkCanvArc.c6
-rw-r--r--generic/tkInt.h6
-rw-r--r--generic/tkTrig.c5
3 files changed, 7 insertions, 10 deletions
diff --git a/generic/tkCanvArc.c b/generic/tkCanvArc.c
index 03496f0..90ebe24 100644
--- a/generic/tkCanvArc.c
+++ b/generic/tkCanvArc.c
@@ -9,7 +9,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkCanvArc.c,v 1.18 2008/10/30 21:39:16 nijtmans Exp $
+ * RCS: @(#) $Id: tkCanvArc.c,v 1.19 2008/11/22 22:28:52 das Exp $
*/
#include <stdio.h>
@@ -236,10 +236,6 @@ Tk_ItemType tkArcType = {
NULL, /* dTextProc */
NULL, /* nextPtr */
};
-
-#ifndef PI
-#define PI 3.14159265358979323846
-#endif
/*
*--------------------------------------------------------------
diff --git a/generic/tkInt.h b/generic/tkInt.h
index 5fe85e1..3a1094f 100644
--- a/generic/tkInt.h
+++ b/generic/tkInt.h
@@ -11,7 +11,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: $Id: tkInt.h,v 1.93 2008/11/22 18:08:51 dkf Exp $
+ * RCS: $Id: tkInt.h,v 1.94 2008/11/22 22:28:52 das Exp $
*/
#ifndef _TKINT
@@ -962,8 +962,12 @@ MODULE_SCOPE Tcl_HashTable tkPredefBitmapTable;
*/
#ifndef PI
+#ifdef M_PI
+#define PI M_PI
+#else
#define PI 3.14159265358979323846
#endif
+#endif
/*
* Exported internals.
diff --git a/generic/tkTrig.c b/generic/tkTrig.c
index f7c2ffb..dc40049 100644
--- a/generic/tkTrig.c
+++ b/generic/tkTrig.c
@@ -11,7 +11,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkTrig.c,v 1.10 2007/12/13 15:24:21 dgp Exp $
+ * RCS: @(#) $Id: tkTrig.c,v 1.11 2008/11/22 22:28:52 das Exp $
*/
#include <stdio.h>
@@ -22,9 +22,6 @@
#define MIN(a,b) (((a) < (b)) ? (a) : (b))
#undef MAX
#define MAX(a,b) (((a) > (b)) ? (a) : (b))
-#ifndef PI
-# define PI 3.14159265358979323846
-#endif /* PI */
/*
*--------------------------------------------------------------