Skip to content

Commit a26e35c

Browse files
committed
project: Fix compilation with VS2013.
1 parent cc377d5 commit a26e35c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

SMP/config.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,10 @@
151151

152152
/* Define to 1 if you have the `snprintf' function. */
153153
#define HAVE_SNPRINTF 1
154+
#include <crtversion.h>
155+
#if _VC_CRT_MAJOR_VERSION < 14
156+
#define snprintf _snprintf
157+
#endif
154158

155159
/* Define 1 if you have Solaris CD-ROM support */
156160
/* #undef HAVE_SOLARIS_CDROM */

0 commit comments

Comments
 (0)