I have a problem with migrating working program which is written on linux to windows. I clean it a little bit but following code snippet always give me an error.
code snippet:
...
struct timeval mytime;
gettimeofday(&mytime, (struct timezone*)0);
tseconds = (double) (mytime.tv_sec + mytime.tv_usec*1.0e-6);
...
stacktrace:
Error 1 error C2079: 'mytime' uses undefined struct 'timeval'
Warning 2 warning C4013: 'gettimeofday' undefined; assuming extern returning int
Error 3 error C2224: left of '.tv_sec' must have struct/union type
Error 4 error C2224: left of '.tv_usec' must have struct/union type
5 IntelliSense: incomplete type is not allowed
6 IntelliSense: incomplete type is not allowed
7 IntelliSense: incomplete type is not allowed
If someone could help me I would be very grateful!