Skip to content

Commit

Permalink
Fix struct timeval definition for MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
vigsterkr committed Aug 14, 2016
1 parent c31a081 commit 84db1a2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/shogun/lib/Time.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,15 @@

#if defined(_MSC_VER) || defined(__MINGW32__)

#ifndef _TIMEVAL_DEFINED /* also in winsock[2].h */
#ifdef __MINGW32__
#ifndef _TIMEVAL_DEFINED
#define _TIMEVAL_DEFINED
struct timeval {
long tv_sec;
long tv_usec;
};
#endif /* _TIMEVAL_DEFINED */
#endif /* __MINGW32__ */

int gettimeofday(struct timeval* tp, void* tzp) {
DWORD t;
Expand Down

0 comments on commit 84db1a2

Please sign in to comment.