aes-everywhere icon indicating copy to clipboard operation
aes-everywhere copied to clipboard

No sys/time.h on Windows

Open CaledoniaProject opened this issue 5 years ago • 3 comments

There's no gettimeofday on WIndows either, can you fix it?

CaledoniaProject avatar Nov 11 '19 09:11 CaledoniaProject

Add gettimeofday() but not tested, cause I don't have Windows. It should work on C++11. Also you should know that cpp implementation had some issues on some platforms, such QT, so test it before use.

mervick avatar Nov 12 '19 01:11 mervick

Yes, It's doesn't compile with Visual Studio.

CaledoniaProject avatar Nov 12 '19 09:11 CaledoniaProject

On Windows,replace sys/time.h with WinSock2.h , then compile and run ok.

leeshung avatar Nov 19 '19 14:11 leeshung