changeset 2025:211330337f2d

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.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Mon, 11 Nov 2019 19:10:22 +0000
parents 8a11bb8ec347
children a9809db1ddbf
files dwtest.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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 <string.h>
 #include <stdio.h>
 #include "dw.h"
+/* For snprintf on old Windows SDK */
+#include "dwcompat.h"
 
 #ifdef _MSC_VER
 #  if _MSC_VER >= 1400