Browse Source

switch all <math.h> includes to <cmath> includes on an attempt to dodge some abiguous references to atan2()

pull/1/head
Dick Hollenbeck 13 years ago
parent
commit
210a7036db
  1. 2
      3d-viewer/trackball.cpp
  2. 4
      bitmap2component/bitmap2component.cpp
  3. 2
      gerbview/excellon_read_drill_file.cpp
  4. 2
      gerbview/rs274d.cpp
  5. 2
      pcb_calculator/attenuators/attenuator_classes.cpp
  6. 2
      pcb_calculator/transline/c_microstrip.cpp
  7. 2
      pcb_calculator/transline/coax.cpp
  8. 2
      pcb_calculator/transline/coplanar.cpp
  9. 2
      pcb_calculator/transline/microstrip.cpp
  10. 2
      pcb_calculator/transline/rectwaveguide.cpp
  11. 2
      pcb_calculator/transline/stripline.cpp
  12. 2
      pcb_calculator/transline/twistedpair.cpp
  13. 2
      pcb_calculator/transline/units.h
  14. 4
      pcbnew/legacy_plugin.cpp
  15. 2
      pcbnew/zones_convert_brd_items_to_polygons_with_Boost.cpp
  16. 2
      polygon/PolyLine.cpp
  17. 2
      polygon/math_for_graphics.cpp
  18. 2
      polygon/polygon_test_point_inside.cpp
  19. 2
      potrace/greymap.cpp
  20. 2
      potrace/render.cpp
  21. 2
      potrace/trace.cpp
  22. 2
      tools/test-nm-biu-to-ascii-mm-round-tripping.cpp

2
3d-viewer/trackball.cpp

@ -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>

4
bitmap2component/bitmap2component.cpp

@ -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>

2
gerbview/excellon_read_drill_file.cpp

@ -69,7 +69,7 @@
#include <class_excellon.h>
#include <kicad_string.h>
#include <math.h>
#include <cmath>
#include <html_messagebox.h>

2
gerbview/rs274d.cpp

@ -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 =

2
pcb_calculator/attenuators/attenuator_classes.cpp

@ -5,7 +5,7 @@
** since 2006/6/14
**
*****************************************************************************/
#include <math.h>
#include <cmath>
#include <attenuator_classes.h>

2
pcb_calculator/transline/c_microstrip.cpp

@ -29,7 +29,7 @@
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <cmath>
#include <units.h>
#include <transline.h>

2
pcb_calculator/transline/coax.cpp

@ -32,7 +32,7 @@
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <cmath>
#include <units.h>
#include <transline.h>

2
pcb_calculator/transline/coplanar.cpp

@ -26,7 +26,7 @@
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <cmath>
#include <units.h>
#include <transline.h>

2
pcb_calculator/transline/microstrip.cpp

@ -32,7 +32,7 @@
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <cmath>
#include <units.h>
#include <transline.h>

2
pcb_calculator/transline/rectwaveguide.cpp

@ -23,7 +23,7 @@
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <cmath>
#include <units.h>
#include <transline.h>

2
pcb_calculator/transline/stripline.cpp

@ -25,7 +25,7 @@
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <cmath>
#include <units.h>
#include <transline.h>

2
pcb_calculator/transline/twistedpair.cpp

@ -25,7 +25,7 @@
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <cmath>
#include <units.h>
#include <transline.h>

2
pcb_calculator/transline/units.h

@ -24,7 +24,7 @@
#ifndef __UNITS_H
#define __UNITS_H
#include <math.h>
#include <cmath>
#include <units_scales.h>
#ifdef __MINGW32__

4
pcbnew/legacy_plugin.cpp

@ -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" ) );

2
pcbnew/zones_convert_brd_items_to_polygons_with_Boost.cpp

@ -44,7 +44,7 @@
* - shapes are smoothed.
*/
#include <math.h>
#include <cmath>
#include <fctsys.h>
#include <polygons_defs.h>

2
polygon/PolyLine.cpp

@ -3,7 +3,7 @@
//
// implementation for kicad and kbool polygon clipping library
//
#include <math.h>
#include <cmath>
#include <vector>
#include <algorithm>

2
polygon/math_for_graphics.cpp

@ -2,7 +2,7 @@
#include <vector>
#include <math.h>
#include <cmath>
#include <float.h>
#include <limits.h>

2
polygon/polygon_test_point_inside.cpp

@ -2,7 +2,7 @@
* @file polygon_test_point_inside.cpp
*/
#include <math.h>
#include <cmath>
#include <vector>
#include <PolyLine.h>

2
potrace/greymap.cpp

@ -10,7 +10,7 @@
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <math.h>
#include <cmath>
#include <greymap.h>

2
potrace/render.cpp

@ -6,7 +6,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <cmath>
#include <string.h>
#include <render.h>

2
potrace/trace.cpp

@ -6,7 +6,7 @@
/* transform jaggy paths into smooth curves */
#include <stdio.h>
#include <math.h>
#include <cmath>
#include <stdlib.h>
#include <string.h>

2
tools/test-nm-biu-to-ascii-mm-round-tripping.cpp

@ -12,7 +12,7 @@
#include <limits.h>
#include <stdio.h>
#include <math.h>
#include <cmath>
#include <string>
#include <string.h>
#include <stdlib.h>

Loading…
Cancel
Save