Commit 210a7036 authored by Dick Hollenbeck's avatar Dick Hollenbeck
Browse files

switch all <math.h> includes to <cmath> includes on an attempt to dodge some...

switch all <math.h> includes to <cmath> includes on an attempt to dodge some abiguous references to atan2()
parent eb94e66c
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -49,7 +49,7 @@
 * Much mucking with by:
 * Much mucking with by:
 * Gavin Bell
 * Gavin Bell
 */
 */
#include <math.h>
#include <cmath>
#include <wx/glcanvas.h>     // used only to define GLfloat
#include <wx/glcanvas.h>     // used only to define GLfloat
#include <trackball.h>
#include <trackball.h>


+2 −2
Original line number Original line Diff line number Diff line
@@ -21,7 +21,7 @@
 * or you may write to the Free Software Foundation, Inc.,
 * or you may write to the Free Software Foundation, Inc.,
 * 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
 * 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
 */
 */
#include <math.h>
#include <cmath>


// For some unknown reasons, polygon.hpp shoul be included first
// For some unknown reasons, polygon.hpp shoul be included first
#include <boost/polygon/polygon.hpp>
#include <boost/polygon/polygon.hpp>
@@ -30,7 +30,7 @@
#include <string.h>
#include <string.h>
#include <errno.h>
#include <errno.h>
#include <stdlib.h>
#include <stdlib.h>
#include <math.h>
#include <cmath>
#include <vector>
#include <vector>


#include <potracelib.h>
#include <potracelib.h>
+1 −1
Original line number Original line Diff line number Diff line
@@ -69,7 +69,7 @@
#include <class_excellon.h>
#include <class_excellon.h>
#include <kicad_string.h>
#include <kicad_string.h>


#include <math.h>
#include <cmath>


#include <html_messagebox.h>
#include <html_messagebox.h>


+1 −1
Original line number Original line Diff line number Diff line
@@ -11,7 +11,7 @@
#include <class_gerber_draw_item.h>
#include <class_gerber_draw_item.h>
#include <class_GERBER.h>
#include <class_GERBER.h>


#include <math.h>
#include <cmath>


/* Gerber: NOTES about some important commands found in RS274D and RS274X (G codes):
/* Gerber: NOTES about some important commands found in RS274D and RS274X (G codes):
 * Gn =
 * Gn =
+1 −1
Original line number Original line Diff line number Diff line
@@ -5,7 +5,7 @@
**     since 2006/6/14
**     since 2006/6/14
**
**
*****************************************************************************/
*****************************************************************************/
#include <math.h>
#include <cmath>


#include <attenuator_classes.h>
#include <attenuator_classes.h>


Loading