summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorUri Lublin <uril@redhat.com>2014-10-23 09:23:09 -0400
committerUri Lublin <uril@redhat.com>2014-12-30 17:17:24 +0200
commitc678c4f26b6139b64689c6785ddf729134697f58 (patch)
tree02142a8d46b245882dd8cabfd9041ec02782fcd9 /common
parenta6383f29dc0788a401b64ca2f3aca07190d49e2b (diff)
vdcommon.h: do not redefine _ftime_s
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, =====
Diffstat (limited to 'common')
-rw-r--r--common/vdcommon.h2
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,