#include <fstream>
#include <sstream>
#include <iostream>
+#ifdef WIN32
+#include <time.h>
+#include <windows.h>
+#endif
+
#include <libxml/tree.h>
#include <libxml/parser.h>
xmlNewProp(node, BAD_CAST "ver", BAD_CAST "1");
//Description tag
- time_t present;
+ time_t present;
+ char date[6];
+#ifndef WIN32
time( &present);
struct tm *time_asc = localtime(&present);
- char date[6];
sprintf(date,"%02d%02d%02d",time_asc->tm_year
,time_asc->tm_mon+1
,time_asc->tm_mday);
+#else
+ SYSTEMTIME st;
+ GetLocalTime ( &st );
+ sprintf(date,"%02d%02d%02d",
+ st.wYear
+ ,st.wMonth
+ ,st.wDay);
+#endif
node = xmlNewChild(root_node,0, BAD_CAST "description",0);
#ifndef __MEDPARTITIONERTEST_HXX__
#define __MEDPARTITIONERTEST_HXX__
+#ifdef WIN32
+# if defined MEDPARTITIONERTEST_EXPORTS || defined MEDPARTITIONERTest_EXPORTS
+# define MEDPARTITIONERTEST_EXPORT __declspec( dllexport )
+# else
+# define MEDPARTITIONERTEST_EXPORT __declspec( dllimport )
+# endif
+#else
+# define MEDPARTITIONERTEST_EXPORT
+#endif
+
+
#include <cppunit/extensions/HelperMacros.h>
#include <set>
#include "MEDCouplingExtrudedMesh.hxx"
#include "MEDCouplingFieldDouble.hxx"
-class MEDPARTITIONERTest : public CppUnit::TestFixture
+class MEDPARTITIONERTEST_EXPORT MEDPARTITIONERTest : public CppUnit::TestFixture
{
CPPUNIT_TEST_SUITE( MEDPARTITIONERTest );
CPPUNIT_TEST( testMeshCollectionSingle );