Skip to content
Snippets Groups Projects
Commit c2254461 authored by Tobias Winchen's avatar Tobias Winchen
Browse files

Fixed missing cmath header in recent compilers

parent bd431fa0
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,8 @@
#include <immintrin.h>
#include <time.h>
#include <iomanip>
#include <cmath>
namespace psrdada_cpp {
namespace effelsberg {
namespace edd {
......@@ -51,7 +53,7 @@ namespace edd {
std::time_t unix_time_int;
struct std::tm * timeinfo;
double fractpart, intpart;
fractpart = modf (static_cast<double>(unix_time) , &intpart);
fractpart = std::modf (static_cast<double>(unix_time) , &intpart);
unix_time_int = static_cast<std::time_t>(intpart);
timeinfo = std::gmtime (&unix_time_int);
std::strftime(time_buffer, 80, "%Y-%m-%d-%H:%M:%S", timeinfo);
......
......
......@@ -3,6 +3,8 @@
#include <immintrin.h>
#include <time.h>
#include <iomanip>
#include <cmath>
namespace psrdada_cpp {
namespace effelsberg {
namespace edd {
......@@ -51,7 +53,7 @@ namespace edd {
std::time_t unix_time_int;
struct std::tm * timeinfo;
double fractpart, intpart;
fractpart = modf (static_cast<double>(unix_time) , &intpart);
fractpart = std::modf (static_cast<double>(unix_time) , &intpart);
unix_time_int = static_cast<std::time_t>(intpart);
timeinfo = std::gmtime (&unix_time_int);
std::strftime(time_buffer, 80, "%Y-%m-%d-%H:%M:%S", timeinfo);
......
......
......@@ -3,6 +3,8 @@
#include <immintrin.h>
#include <time.h>
#include <iomanip>
#include <cmath>
namespace psrdada_cpp {
namespace effelsberg {
namespace edd {
......@@ -51,7 +53,7 @@ namespace edd {
std::time_t unix_time_int;
struct std::tm * timeinfo;
double fractpart, intpart;
fractpart = modf (static_cast<double>(unix_time) , &intpart);
fractpart = std::modf (static_cast<double>(unix_time) , &intpart);
unix_time_int = static_cast<std::time_t>(intpart);
timeinfo = std::gmtime (&unix_time_int);
std::strftime(time_buffer, 80, "%Y-%m-%d-%H:%M:%S", timeinfo);
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment