[llvm-commits] CVS: llvm-test/MultiSource/Applications/hexxagon/hexxagonmove.cpp
John Criswell
criswell at cs.uiuc.edu
Wed Oct 26 08:34:58 PDT 2005
Changes in directory llvm-test/MultiSource/Applications/hexxagon:
hexxagonmove.cpp updated: 1.2 -> 1.3
---
Log message:
Darwin (__APPLE__) uses gettimeofday.
This fixes compilation on MacOS X.
---
Diffs of the changes: (+2 -2)
hexxagonmove.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Index: llvm-test/MultiSource/Applications/hexxagon/hexxagonmove.cpp
diff -u llvm-test/MultiSource/Applications/hexxagon/hexxagonmove.cpp:1.2 llvm-test/MultiSource/Applications/hexxagon/hexxagonmove.cpp:1.3
--- llvm-test/MultiSource/Applications/hexxagon/hexxagonmove.cpp:1.2 Mon Mar 7 10:41:13 2005
+++ llvm-test/MultiSource/Applications/hexxagon/hexxagonmove.cpp Wed Oct 26 10:34:35 2005
@@ -25,7 +25,7 @@
#include <iostream>
#include <stdlib.h>
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) || defined(__APPLE__)
#include <sys/time.h>
#else
#include <sys/timeb.h>
@@ -87,7 +87,7 @@
int getTime()
{
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) || defined(__APPLE__)
struct timeval tv;
gettimeofday(&tv, NULL);
More information about the llvm-commits
mailing list