[Spice-devel] [vdagent-win PATCH V3 06/11] vdcommon.h: consolidate defines under OLDMSVCRT

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


---
 common/vdcommon.h |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/common/vdcommon.h b/common/vdcommon.h
index 6ab18c6..74496f1 100644
--- a/common/vdcommon.h
+++ b/common/vdcommon.h
@@ -62,13 +62,11 @@ typedef CRITICAL_SECTION mutex_t;
  */
 #ifdef OLDMSVCRT
 #define swprintf_s(buf, sz, format...) swprintf(buf, format)
-#endif
 
-#ifdef OLDMSVCRT
 #ifndef _ftime_s
 #define _ftime_s(timeb) _ftime(timeb)
 #endif
-#endif
+#endif /* OLDMSVCRT */
 
 enum SystemVersion {
     SYS_VER_UNSUPPORTED,
-- 
1.7.1



More information about the Spice-devel mailing list