changeset 2354:dfb52d2bddaa

Only include dwcompat.h in dwtest on OS/2 and Windows. This allows compilation of dwtest on Mac and Unix when --with-dwcompat isn't specified.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Mon, 08 Mar 2021 19:24:21 +0000
parents 29cc92d4218b
children fad0821cb953
files dwtest.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/dwtest.c	Mon Mar 08 19:22:39 2021 +0000
+++ b/dwtest.c	Mon Mar 08 19:24:21 2021 +0000
@@ -8,7 +8,9 @@
 #include <stdio.h>
 #include "dw.h"
 /* For snprintf, strdup etc on old Windows SDK */
+#if defined(__WIN32__) || defined(__OS2__)
 #include "dwcompat.h"
+#endif
 
 /* Select a fixed width font for our platform */
 #ifdef __OS2__