tighten up compat include paths, fix glibc compatibility

This commit is contained in:
Brent Cook
2015-07-21 12:04:07 -06:00
parent 5d8a1cf715
commit cbdc8ca820
4 changed files with 10 additions and 16 deletions

View File

@@ -3,14 +3,9 @@
* sys/time.h compatibility shim
*/
#ifndef LIBCRYPTOCOMPAT_TIME_H
#define LIBCRYPTOCOMPAT_TIME_H
#ifdef _MSC_VER
#include <../include/time.h>
#define gmtime_r(tp, tm) ((gmtime_s((tm), (tp)) == 0) ? (tm) : NULL)
#else
#include_next <time.h>
#endif
#endif