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 58b1552 commit 2e52f84
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
10 changes: 0 additions & 10 deletions source/clientserver/udaDefines.h
Original file line number Diff line number Diff line change
Expand Up @@ -128,16 +128,6 @@ extern "C" {

#if defined(_WIN32)
# if !defined(__MINGW32__)
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
4 changes: 3 additions & 1 deletion source/wrappers/python/pyuda/cpyuda/cpyuda.pyx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
cdef extern from "winsock2.h":
pass
include "handle.pyx"
include "client.pyx"
include "dim.pyx"
Expand All @@ -6,4 +8,4 @@ include "result.pyx"
include "tree_node.pyx"
include "types.pyx"
IF CAPNP:
include "capnp_tree.pyx"
include "capnp_tree.pyx"

0 comments on commit 2e52f84

Please sign in to comment.