Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/GStreamer/orc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Schleef <ds@schleef.org>2009-12-03 02:04:39 +0300
committerDavid Schleef <ds@schleef.org>2009-12-03 02:20:26 +0300
commit86f3f83f0e7a4d08a01e601f8e422a0fddac6a88 (patch)
tree54c2ac964f015194c59886c798adb41790979b13 /examples
parent0acec171e9acfd147ffac090f2fcccc0b557da4f (diff)
Build fixes due to MSVC
Diffstat (limited to 'examples')
-rw-r--r--examples/volscale.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/examples/volscale.c b/examples/volscale.c
index 5aa4ec0..1f02b99 100644
--- a/examples/volscale.c
+++ b/examples/volscale.c
@@ -1,7 +1,8 @@
#include <stdio.h>
-#include <stdint.h>
+#ifndef _MSC_VER
#include <sys/time.h>
+#endif
#define ORC_ENABLE_UNSTABLE_API
@@ -193,11 +194,15 @@ do_volume_orc (int16_t *dest, int32_t *volumes, int16_t *samp, int length)
static uint64_t
get_timestamp ()
{
+#ifndef _MSC_VER
struct timeval now;
gettimeofday (&now, NULL);
return now.tv_sec * 1000000LL + now.tv_usec;
+#else
+ return 0;
+#endif
}
#define TIMES 100000