diff options
author | David Hows <howsdav@gmail.com> | 2016-05-06 15:31:40 +1000 |
---|---|---|
committer | Alex Gorrod <alexander.gorrod@mongodb.com> | 2016-05-06 15:31:40 +1000 |
commit | b1cebb044a227b3b6dd30f32bf9e7a6cc4595c51 (patch) | |
tree | 99a9f8dd8fc3b48736528672db1dc6a067f3ba14 | |
parent | 8ac9a3057bc3312773bff18c22b27813588a957b (diff) | |
download | mongo-b1cebb044a227b3b6dd30f32bf9e7a6cc4595c51.tar.gz |
WT-2624 Fix example program build with MSVC 2013 (#2725)
Since Visual Studio 2013 doesn't have a snprintf symbol.
-rw-r--r-- | examples/c/ex_file_system.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/c/ex_file_system.c b/examples/c/ex_file_system.c index 9330e66c9b6..c65019159fe 100644 --- a/examples/c/ex_file_system.c +++ b/examples/c/ex_file_system.c @@ -31,6 +31,10 @@ #include <errno.h> #include <stdlib.h> #include <string.h> +#ifdef _WIN32 +/* snprintf is not supported on <= VS2013 */ +#define snprintf _snprintf +#endif #include <wiredtiger.h> #include "queue_example.h" |