diff lib-src/make-mswin-unicode.pl @ 3728:6765f2581182

[xemacs-hg @ 2006-12-08 02:21:53 by vins] Added Benson Margulies's patch to avoid the dreaded: "File not found and directory write-protected" message under Windows.
author vins
date Fri, 08 Dec 2006 02:22:02 +0000
parents ecf1ebac70d8
children 23ef20edf6ba
line wrap: on
line diff
--- a/lib-src/make-mswin-unicode.pl	Fri Dec 08 02:17:16 2006 +0000
+++ b/lib-src/make-mswin-unicode.pl	Fri Dec 08 02:22:02 2006 +0000
@@ -107,7 +107,7 @@
     $dir=$ENV{"MSVCDIR"} or die "Environment variable MSVCDIR undefined - run vcvars32.bat from your MSVC installation";
     $dir.='/include';
   }
-die "Can't find MSVC include files in \"$dir\"" unless (-f $dir.'/WINDOWS.H');
+die "Can't find MSVC include files in \"$dir\"" unless ((-f $dir.'/WINDOWS.H') || (-f $dir.'/windows.h'));
 
 open (COUT, ">$cout") or die "Can't open C output file $cout: $!";
 open (HOUT, ">$hout") or die "Can't open C output file $hout: $!";