diff dwtest.c @ 1601:71e0a3ad07f7

Enable level 3 warnings in DEBUG mode with Visual C to show deprecation warnings. Source code cleanup to eliminate the warnings now generated on this level.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sun, 26 Feb 2012 09:21:35 +0000
parents ee47bda26916
children fd3b7784ab53
line wrap: on
line diff
--- a/dwtest.c	Sat Feb 25 23:35:59 2012 +0000
+++ b/dwtest.c	Sun Feb 26 09:21:35 2012 +0000
@@ -8,6 +8,12 @@
 #include <stdio.h>
 #include "dw.h"
 
+#ifdef _MSC_VER
+#  if _MSC_VER >= 1400
+#  define strdup(a) _strdup(a)
+#  endif
+#endif
+
 /* Select a fixed width font for our platform */
 #ifdef __OS2__
 #define FIXEDFONT "5.System VIO"