# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1573499422 0 # Node ID 211330337f2d5d7e03f965e3b06552073ccf090b # Parent 8a11bb8ec34725e46ad16fc0ce9dcdbdbca3e4cb Include "dwcompat.h" in the test program for the system macros. Fixes an undefined _snprintf() on Windows using SDK 7.1. The library itself isn't needed, just including the header. diff -r 8a11bb8ec347 -r 211330337f2d dwtest.c --- a/dwtest.c Mon Nov 11 18:29:23 2019 +0000 +++ b/dwtest.c Mon Nov 11 19:10:22 2019 +0000 @@ -7,6 +7,8 @@ #include #include #include "dw.h" +/* For snprintf on old Windows SDK */ +#include "dwcompat.h" #ifdef _MSC_VER # if _MSC_VER >= 1400