1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-09-20 09:15:38 +01:00

No compile on babbage fix

This commit is contained in:
paboyle 2015-09-30 16:01:28 -07:00
parent af89c40462
commit 23813ac798
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@
#include <arpa/inet.h> #include <arpa/inet.h>
#include <algorithm>
// 64bit endian swap is a portability pain // 64bit endian swap is a portability pain
#ifndef __has_builtin // Optional of course. #ifndef __has_builtin // Optional of course.
#define __has_builtin(x) 0 // Compatibility with non-clang compilers. #define __has_builtin(x) 0 // Compatibility with non-clang compilers.

View File

@ -83,7 +83,7 @@ inline void NerscMachineCharacteristics(NerscField &header)
std::time_t t = std::time(nullptr); std::time_t t = std::time(nullptr);
std::tm tm = *std::localtime(&t); std::tm tm = *std::localtime(&t);
std::ostringstream oss; std::ostringstream oss;
oss << std::put_time(&tm, "%c %Z"); // oss << std::put_time(&tm, "%c %Z");
header.creation_date = oss.str(); header.creation_date = oss.str();
header.archive_date = header.creation_date; header.archive_date = header.creation_date;