switch all <math.h> includes to <cmath> includes on an attempt to dodge some abiguous references to atan2()
This commit is contained in:
parent
eb94e66c9d
commit
210a7036db
|
@ -49,7 +49,7 @@
|
|||
* Much mucking with by:
|
||||
* Gavin Bell
|
||||
*/
|
||||
#include <math.h>
|
||||
#include <cmath>
|
||||
#include <wx/glcanvas.h> // used only to define GLfloat
|
||||
#include <trackball.h>
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
* or you may write to the Free Software Foundation, Inc.,
|
||||
* 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
|
||||
#include <boost/polygon/polygon.hpp>
|
||||
|
@ -30,7 +30,7 @@
|
|||
#include <string.h>
|
||||
#include <errno.h>
|
||||
#include <stdlib.h>
|
||||
#include <math.h>
|
||||
#include <cmath>
|
||||
#include <vector>
|
||||
|
||||
#include <potracelib.h>
|
||||
|
|
|
@ -69,7 +69,7 @@
|
|||
#include <class_excellon.h>
|
||||
#include <kicad_string.h>
|
||||
|
||||
#include <math.h>
|
||||
#include <cmath>
|
||||
|
||||
#include <html_messagebox.h>
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
#include <class_gerber_draw_item.h>
|
||||
#include <class_GERBER.h>
|
||||
|
||||
#include <math.h>
|
||||
#include <cmath>
|
||||
|
||||
/* Gerber: NOTES about some important commands found in RS274D and RS274X (G codes):
|
||||
* Gn =
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
** since 2006/6/14
|
||||
**
|
||||
*****************************************************************************/
|
||||
#include <math.h>
|
||||
#include <cmath>
|
||||
|
||||
#include <attenuator_classes.h>
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <math.h>
|
||||
#include <cmath>
|
||||
|
||||
#include <units.h>
|
||||
#include <transline.h>
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <math.h>
|
||||
#include <cmath>
|
||||
|
||||
#include <units.h>
|
||||
#include <transline.h>
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <math.h>
|
||||
#include <cmath>
|
||||
|
||||
#include <units.h>
|
||||
#include <transline.h>
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <math.h>
|
||||
#include <cmath>
|
||||
|
||||
#include <units.h>
|
||||
#include <transline.h>
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <math.h>
|
||||
#include <cmath>
|
||||
|
||||
#include <units.h>
|
||||
#include <transline.h>
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <math.h>
|
||||
#include <cmath>
|
||||
|
||||
#include <units.h>
|
||||
#include <transline.h>
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <math.h>
|
||||
#include <cmath>
|
||||
|
||||
#include <units.h>
|
||||
#include <transline.h>
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
#ifndef __UNITS_H
|
||||
#define __UNITS_H
|
||||
|
||||
#include <math.h>
|
||||
#include <cmath>
|
||||
#include <units_scales.h>
|
||||
|
||||
#ifdef __MINGW32__
|
||||
|
|
|
@ -59,7 +59,7 @@
|
|||
*/
|
||||
|
||||
|
||||
#include <math.h>
|
||||
#include <cmath>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
|
@ -4105,7 +4105,7 @@ void FPL_CACHE::Save()
|
|||
abs_lib_name.MakeAbsolute();
|
||||
tempFileName = wxFileName::CreateTempFileName( abs_lib_name.GetFullPath() );
|
||||
|
||||
wxLogDebug( wxT( "tempFileName:'%s' m_lib_name:'%s'\n" ),
|
||||
wxLogDebug( wxT( "tempFileName:'%s' m_lib_name:'%s'\n" ),
|
||||
TO_UTF8( tempFileName ), TO_UTF8( m_lib_name ) );
|
||||
|
||||
FILE* fp = wxFopen( tempFileName, wxT( "w" ) );
|
||||
|
|
|
@ -44,7 +44,7 @@
|
|||
* - shapes are smoothed.
|
||||
*/
|
||||
|
||||
#include <math.h>
|
||||
#include <cmath>
|
||||
|
||||
#include <fctsys.h>
|
||||
#include <polygons_defs.h>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
//
|
||||
// implementation for kicad and kbool polygon clipping library
|
||||
//
|
||||
#include <math.h>
|
||||
#include <cmath>
|
||||
#include <vector>
|
||||
#include <algorithm>
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
#include <vector>
|
||||
|
||||
#include <math.h>
|
||||
#include <cmath>
|
||||
#include <float.h>
|
||||
#include <limits.h>
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* @file polygon_test_point_inside.cpp
|
||||
*/
|
||||
|
||||
#include <math.h>
|
||||
#include <cmath>
|
||||
#include <vector>
|
||||
#include <PolyLine.h>
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
#include <stdlib.h>
|
||||
#include <errno.h>
|
||||
#include <string.h>
|
||||
#include <math.h>
|
||||
#include <cmath>
|
||||
|
||||
#include <greymap.h>
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <math.h>
|
||||
#include <cmath>
|
||||
#include <string.h>
|
||||
|
||||
#include <render.h>
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
/* transform jaggy paths into smooth curves */
|
||||
|
||||
#include <stdio.h>
|
||||
#include <math.h>
|
||||
#include <cmath>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
#include <limits.h>
|
||||
#include <stdio.h>
|
||||
#include <math.h>
|
||||
#include <cmath>
|
||||
#include <string>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
|
|
Loading…
Reference in New Issue