Commit 80287485 authored by Brian Panneton's avatar Brian Panneton
Browse files

ENH: Added headers to support newer compilers.

parent a6be5bff
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
#include <libxml/xmlreader.h> #include <libxml/xmlreader.h>
#include <map> #include <map>
#include <sstream> #include <sstream>
#include <cstring>
#include "XdmfCoreItemFactory.hpp" #include "XdmfCoreItemFactory.hpp"
#include "XdmfCoreReader.hpp" #include "XdmfCoreReader.hpp"
#include "XdmfItem.hpp" #include "XdmfItem.hpp"
...@@ -144,7 +145,7 @@ public: ...@@ -144,7 +145,7 @@ public:
const char * content = (char*)childNode->content; const char * content = (char*)childNode->content;
// determine if content is whitespace // determine if content is whitespace
const size_t contentSize = strlen(content); const size_t contentSize = std::strlen(content);
bool whitespace = true; bool whitespace = true;
for(int i=0; i<contentSize; ++i) { for(int i=0; i<contentSize; ++i) {
......
#include <XdmfError.hpp> #include <XdmfError.hpp>
#include <cstdlib>
XdmfError::XdmfError() XdmfError::XdmfError()
{} {}
...@@ -27,7 +28,7 @@ XdmfError::message(Level level, std::string msg) ...@@ -27,7 +28,7 @@ XdmfError::message(Level level, std::string msg)
if(level<=XdmfError::getLevel()) if(level<=XdmfError::getLevel())
XdmfError::WriteToStream(msg); XdmfError::WriteToStream(msg);
if(level == XdmfError::FATAL) if(level == XdmfError::FATAL)
exit(1); std::exit(1);
} }
void void
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment