[llvm-commits] CVS: llvm-test/MultiSource/Applications/JM/lencod/image.c
Jeff Cohen
jeffc at jolt-lang.org
Thu Mar 29 09:27:47 PDT 2007
Changes in directory llvm-test/MultiSource/Applications/JM/lencod:
image.c updated: 1.4 -> 1.5
---
Log message:
Improve BSD ftime hack and apply it to another test.
---
Diffs of the changes: (+14 -0)
image.c | 14 ++++++++++++++
1 files changed, 14 insertions(+)
Index: llvm-test/MultiSource/Applications/JM/lencod/image.c
diff -u llvm-test/MultiSource/Applications/JM/lencod/image.c:1.4 llvm-test/MultiSource/Applications/JM/lencod/image.c:1.5
--- llvm-test/MultiSource/Applications/JM/lencod/image.c:1.4 Thu Feb 8 17:05:31 2007
+++ llvm-test/MultiSource/Applications/JM/lencod/image.c Thu Mar 29 11:27:28 2007
@@ -51,6 +51,20 @@
#include "output.h"
#include "cabac.h"
+#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__APPLE__)
+#include <sys/time.h>
+int ftime(struct timeb *tp)
+{
+ struct timeval tv;
+ struct timezone tz;
+ gettimeofday(&tv, &tz);
+ tp->time = tv.tv_sec;
+ tp->millitm = tv.tv_usec / 1000;
+ tp->timezone = tz.tz_minuteswest;
+ tp->dstflag = tz.tz_dsttime;
+}
+#endif
+
extern pic_parameter_set_rbsp_t *PicParSet[MAXPPS];
void code_a_picture(Picture *pic);
More information about the llvm-commits
mailing list