[Spice-devel] [vdagent-win PATCH V3 05/11] vdcommon.h: do not redefine _ftime_s

Uri Lublin uril at redhat.com
Tue Dec 30 08:20:51 PST 2014


Fixes the following error:
====
In file included from vdagent/vdagent.cpp:18:0:
./common/vdcommon.h:51:0: warning: "_ftime_s" redefined
 #define _ftime_s(timeb) _ftime(timeb)
 ^
In file included from /usr/x86_64-w64-mingw32/sys-root/mingw/include/sys/timeb.h:124:0,
=====
---
 common/vdcommon.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/common/vdcommon.h b/common/vdcommon.h
index 3d0f794..6ab18c6 100644
--- a/common/vdcommon.h
+++ b/common/vdcommon.h
@@ -65,8 +65,10 @@ typedef CRITICAL_SECTION mutex_t;
 #endif
 
 #ifdef OLDMSVCRT
+#ifndef _ftime_s
 #define _ftime_s(timeb) _ftime(timeb)
 #endif
+#endif
 
 enum SystemVersion {
     SYS_VER_UNSUPPORTED,
-- 
1.7.1



More information about the Spice-devel mailing list