[cig-commits] r11934 - in short/3D/PyLith/trunk/unittests/libtests: feassemble materials meshio

willic3 at geodynamics.org willic3 at geodynamics.org
Fri May 9 09:49:04 PDT 2008


Author: willic3
Date: 2008-05-09 09:49:03 -0700 (Fri, 09 May 2008)
New Revision: 11934

Modified:
   short/3D/PyLith/trunk/unittests/libtests/feassemble/TestQuadrature.cc
   short/3D/PyLith/trunk/unittests/libtests/materials/TestMaterial.cc
   short/3D/PyLith/trunk/unittests/libtests/meshio/TestDataWriterVTK.cc
   short/3D/PyLith/trunk/unittests/libtests/meshio/TestMeshIOAscii.cc
   short/3D/PyLith/trunk/unittests/libtests/meshio/TestMeshIOCubit.cc
   short/3D/PyLith/trunk/unittests/libtests/meshio/TestMeshIOLagrit.cc
   short/3D/PyLith/trunk/unittests/libtests/meshio/TestOutputSolnSubset.cc
Log:
For all code that uses the functions strcasecmp, memcpy, or strcmp, put in
the corresponding include file explicitly.  Some of the include files don't
get included automatically, depending on the compiler.




Modified: short/3D/PyLith/trunk/unittests/libtests/feassemble/TestQuadrature.cc
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/feassemble/TestQuadrature.cc	2008-05-09 16:37:44 UTC (rev 11933)
+++ short/3D/PyLith/trunk/unittests/libtests/feassemble/TestQuadrature.cc	2008-05-09 16:49:03 UTC (rev 11934)
@@ -19,6 +19,8 @@
 
 #include "data/QuadratureData.hh" // USES QuadratureData
 
+#include <string.h> // USES memcpy()
+
 // ----------------------------------------------------------------------
 CPPUNIT_TEST_SUITE_REGISTRATION( pylith::feassemble::TestQuadrature );
 

Modified: short/3D/PyLith/trunk/unittests/libtests/materials/TestMaterial.cc
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/materials/TestMaterial.cc	2008-05-09 16:37:44 UTC (rev 11933)
+++ short/3D/PyLith/trunk/unittests/libtests/materials/TestMaterial.cc	2008-05-09 16:49:03 UTC (rev 11934)
@@ -28,6 +28,7 @@
 
 #include "pylith/utils/sievetypes.hh" // USES Mesh
 
+#include <string.h> // USES strcmp()
 #include <math.h> // USES assert()
 
 // ----------------------------------------------------------------------

Modified: short/3D/PyLith/trunk/unittests/libtests/meshio/TestDataWriterVTK.cc
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/meshio/TestDataWriterVTK.cc	2008-05-09 16:37:44 UTC (rev 11933)
+++ short/3D/PyLith/trunk/unittests/libtests/meshio/TestDataWriterVTK.cc	2008-05-09 16:49:03 UTC (rev 11934)
@@ -20,6 +20,8 @@
 
 #include "spatialdata/geocoords/CSCart.hh" // USES CSCart
 
+#include <string.h> // USES strcmp()
+
 // ----------------------------------------------------------------------
 CPPUNIT_TEST_SUITE_REGISTRATION( pylith::meshio::TestDataWriterVTK );
 

Modified: short/3D/PyLith/trunk/unittests/libtests/meshio/TestMeshIOAscii.cc
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/meshio/TestMeshIOAscii.cc	2008-05-09 16:37:44 UTC (rev 11933)
+++ short/3D/PyLith/trunk/unittests/libtests/meshio/TestMeshIOAscii.cc	2008-05-09 16:49:03 UTC (rev 11934)
@@ -26,6 +26,8 @@
 #include "data/MeshData3D.hh"
 #include "data/MeshData3DIndexOne.hh"
 
+#include <strings.h> // USES strcasecmp()
+
 // ----------------------------------------------------------------------
 CPPUNIT_TEST_SUITE_REGISTRATION( pylith::meshio::TestMeshIOAscii );
 

Modified: short/3D/PyLith/trunk/unittests/libtests/meshio/TestMeshIOCubit.cc
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/meshio/TestMeshIOCubit.cc	2008-05-09 16:37:44 UTC (rev 11933)
+++ short/3D/PyLith/trunk/unittests/libtests/meshio/TestMeshIOCubit.cc	2008-05-09 16:49:03 UTC (rev 11934)
@@ -24,6 +24,8 @@
 #include "data/MeshDataCubitTet.hh"
 #include "data/MeshDataCubitHex.hh"
 
+#include <strings.h> // USES strcasecmp()
+
 // ----------------------------------------------------------------------
 CPPUNIT_TEST_SUITE_REGISTRATION( pylith::meshio::TestMeshIOCubit );
 

Modified: short/3D/PyLith/trunk/unittests/libtests/meshio/TestMeshIOLagrit.cc
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/meshio/TestMeshIOLagrit.cc	2008-05-09 16:37:44 UTC (rev 11933)
+++ short/3D/PyLith/trunk/unittests/libtests/meshio/TestMeshIOLagrit.cc	2008-05-09 16:49:03 UTC (rev 11934)
@@ -21,6 +21,8 @@
 
 #include "data/MeshDataLagritTet.hh"
 
+#include <strings.h> // USES strcasecmp()
+
 #if defined(WORDS_BIGENDIAN)
 #define NATIVE_BIG_ENDIAN
 #else

Modified: short/3D/PyLith/trunk/unittests/libtests/meshio/TestOutputSolnSubset.cc
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/meshio/TestOutputSolnSubset.cc	2008-05-09 16:37:44 UTC (rev 11933)
+++ short/3D/PyLith/trunk/unittests/libtests/meshio/TestOutputSolnSubset.cc	2008-05-09 16:49:03 UTC (rev 11934)
@@ -18,6 +18,8 @@
 
 #include "pylith/meshio/MeshIOAscii.hh" // USES MeshIOAscii
 
+#include <string.h> // USES strcmp()
+
 // ----------------------------------------------------------------------
 CPPUNIT_TEST_SUITE_REGISTRATION( pylith::meshio::TestOutputSolnSubset );
 



More information about the cig-commits mailing list