Skip to content

Commit

Permalink
fix: define timegm on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
flubshi committed Apr 26, 2019
1 parent 62064bf commit dfc120d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
#include <string>
#include <vector>

#if defined(WIN32) || defined(_WIN32) || defined(__WIN32) && !defined(__CYGWIN__)
#define timegm _mkgmtime
#endif

class Utils
{
public:
Expand Down

0 comments on commit dfc120d

Please sign in to comment.