mervick / aes-everywhere

Aes Everywhere - Cross Language AES 256 Encryption Library (Bash, Powershell, C#, Dart, GoLang, Java, JavaScript, Lua, PHP, Python, Ruby, Swift)
Other
478 stars 167 forks source link

No sys/time.h on Windows #18

Open CaledoniaProject opened 4 years ago

CaledoniaProject commented 4 years ago

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

mervick commented 4 years ago

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.

CaledoniaProject commented 4 years ago

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

leeshung commented 4 years ago

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