Browse Source

Missing snprintf() fix for 'duk'

pull/486/head
Sami Vaarala 9 years ago
parent
commit
027c0a573c
  1. 2
      examples/cmdline/duk_cmdline.c

2
examples/cmdline/duk_cmdline.c

@ -16,6 +16,8 @@
defined(WIN64) || defined(_WIN64) || defined(__WIN64__) defined(WIN64) || defined(_WIN64) || defined(__WIN64__)
/* Suppress warnings about plain fopen() etc. */ /* Suppress warnings about plain fopen() etc. */
#define _CRT_SECURE_NO_WARNINGS #define _CRT_SECURE_NO_WARNINGS
/* Add missing snprintf(); not same NUL termination but we don't rely on it. */
#define snprintf _snprintf
#endif #endif
#if defined(_MSC_VER) #if defined(_MSC_VER)

Loading…
Cancel
Save