Index: lib/datetime.cpp ================================================================== --- lib/datetime.cpp +++ lib/datetime.cpp @@ -30,10 +30,11 @@ #include "datetime.h" #include "stream2string.h" #include +#include #include #include using namespace std; @@ -51,11 +52,11 @@ localtime_r(&t, ptm); #else // No explicitly thread-safe localtime() replacement found. This // may still be thread-safe, as some C libraries take special steps // within localtime() to get thread safety, such as TLS. - memcpy(ptm, localtime(&t), sizeof(tm)); + std::memcpy(ptm, localtime(&t), sizeof(tm)); #endif } std::ostream& operator <<(std::ostream& os, const Date& d)