[gnome-control-center] wacom: Remove M_PI redefinition



commit 0d98523b7b71ebab61806207a274312219d92077
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Jan 10 18:34:30 2012 +0000

    wacom: Remove M_PI redefinition

 panels/wacom/calibrator/gui_gtk.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/panels/wacom/calibrator/gui_gtk.c b/panels/wacom/calibrator/gui_gtk.c
index b2b5aba..8a59f99 100644
--- a/panels/wacom/calibrator/gui_gtk.c
+++ b/panels/wacom/calibrator/gui_gtk.c
@@ -21,6 +21,7 @@
  * THE SOFTWARE.
  */
 
+#include <math.h>
 #include <stdlib.h>
 #include <stdio.h>
 #include <gtk/gtk.h>
@@ -31,10 +32,6 @@
 
 #define MAXIMUM(x,y) ((x) > (y) ? (x) : (y))
 
-#ifndef M_PI
-#define M_PI 3.14159265358979323846264338327
-#endif
-
 /* Timeout parameters */
 const int time_step = 100;  /* in milliseconds */
 const int max_time = 15000; /* 5000 = 5 sec */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]