Skip to content

Commit

Permalink
Fixing gettimeofday include for MINGW32
Browse files Browse the repository at this point in the history
  • Loading branch information
a-a-maly committed May 31, 2021
1 parent a9cbe75 commit a8d2df3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/kumir2-libs/stdlib/kmath.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
#include <float.h>

#include <time.h>
#if !defined(_WIN32) || defined(__MINGW32__)
#include <sys/time.h>
#endif

#if !defined(APPLE) && !defined(__MINGW32__)
#include <random>
static std::random_device rd;
Expand Down

0 comments on commit a8d2df3

Please sign in to comment.