diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/vdcommon.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/common/vdcommon.h b/common/vdcommon.h index 74496f1..568e3ba 100644 --- a/common/vdcommon.h +++ b/common/vdcommon.h @@ -68,6 +68,10 @@ typedef CRITICAL_SECTION mutex_t; #endif #endif /* OLDMSVCRT */ +#ifdef _MSC_VER // compiling with Visual Studio +#define snprintf sprintf_s +#endif + enum SystemVersion { SYS_VER_UNSUPPORTED, SYS_VER_WIN_XP_CLASS, // also Server 2003/R2 |