[compiler-rt] r208671 - [sanitizer] define __sanitizer_time_t
Kostya Serebryany
kcc at google.com
Tue May 13 00:49:40 PDT 2014
Author: kcc
Date: Tue May 13 02:49:39 2014
New Revision: 208671
URL: http://llvm.org/viewvc/llvm-project?rev=208671&view=rev
Log:
[sanitizer] define __sanitizer_time_t
Modified:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_limits_posix.h
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_limits_posix.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_limits_posix.h?rev=208671&r1=208670&r2=208671&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_limits_posix.h (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_limits_posix.h Tue May 13 02:49:39 2014
@@ -320,8 +320,14 @@ namespace __sanitizer {
char **gr_mem;
};
+#if defined(__x86_64__) && !defined(_LP64)
+ typedef long long __sanitizer_time_t;
+#else
+ typedef long __sanitizer_time_t;
+#endif
+
struct __sanitizer_timeb {
- long time;
+ __sanitizer_time_t time;
unsigned short millitm;
short timezone;
short dstflag;
More information about the llvm-commits
mailing list