comparison dwtest.c @ 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 617a78dc70aa
children a9809db1ddbf
comparison
equal deleted inserted replaced
2024:8a11bb8ec347 2025:211330337f2d
5 */ 5 */
6 #include <stdlib.h> 6 #include <stdlib.h>
7 #include <string.h> 7 #include <string.h>
8 #include <stdio.h> 8 #include <stdio.h>
9 #include "dw.h" 9 #include "dw.h"
10 /* For snprintf on old Windows SDK */
11 #include "dwcompat.h"
10 12
11 #ifdef _MSC_VER 13 #ifdef _MSC_VER
12 # if _MSC_VER >= 1400 14 # if _MSC_VER >= 1400
13 # define strdup(a) _strdup(a) 15 # define strdup(a) _strdup(a)
14 # endif 16 # endif