summaryrefslogtreecommitdiff
path: root/third_party/build/srtp/srtp_config.h
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/build/srtp/srtp_config.h')
-rw-r--r--third_party/build/srtp/srtp_config.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/third_party/build/srtp/srtp_config.h b/third_party/build/srtp/srtp_config.h
index b68b188d..2442b072 100644
--- a/third_party/build/srtp/srtp_config.h
+++ b/third_party/build/srtp/srtp_config.h
@@ -137,6 +137,20 @@
# pragma warning(disable:4244) // conversion from int64 to int
#endif
+/* clock() */
+#if defined(PJ_WIN32_WINCE) && PJ_WIN32_WINCE!=0
+ /* clock() causes unresolved symbol on linking */
+# define _CLOCK_T_DEFINED
+# define CLOCKS_PER_SEC 1000
+# define clock_t unsigned
+
+ #include <windows.h>
+ static clock_t clock(void)
+ {
+ return GetTickCount();
+ }
+#endif
+
/* Path to random device */
/* #define DEV_URANDOM "/dev/urandom" */