Skip to content

Commit

Permalink
timeval
Browse files Browse the repository at this point in the history
  • Loading branch information
hannorein committed Sep 13, 2023
1 parent 8b01fa5 commit e132264
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/rebound.c
Original file line number Diff line number Diff line change
Expand Up @@ -905,13 +905,6 @@ enum REB_STATUS reb_integrate(struct reb_simulation* const r, double tmax){
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#include <stdint.h> // portable: uint64_t MSVC: __int64

// MSVC defines this in winsock2.h!?
typedef struct timeval {
long tv_sec;
long tv_usec;
} timeval;

int gettimeofday(struct timeval * tp, struct timezone * tzp)
{
// Note: some broken versions only have 8 trailing zero's, the correct epoch has 9 trailing zero's
Expand Down

0 comments on commit e132264

Please sign in to comment.