Skip to content

Commit

Permalink
attempting to fix cython compilation errors with msvc timeofday
Browse files Browse the repository at this point in the history
  • Loading branch information
stephen-dixon committed Aug 5, 2024
1 parent b522a2a commit 58b1552
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion source/clientserver/udaDefines.h
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,16 @@ extern "C" {

#if defined(_WIN32)
# if !defined(__MINGW32__)
#include <winsock2.h>
struct timeval {
long tv_sec;
long tv_usec;
};

struct timezone {
int tz_minuteswest;
int tz_dsttime;
};

LIBRARY_API int gettimeofday(struct timeval* tp, struct timezone* tzp);
# endif
#endif
Expand Down

0 comments on commit 58b1552

Please sign in to comment.