Resent:[From Steven Edwards]PATCH: Fix build wcmd on windows

Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Sat Sep 7 17:02:56 CDT 2002


Appended patch allows to built wcmd with mingw. As windows executable,  we
can specify wcmd.exe as $COMSPEC and e.g. Xilinx Webpack may start it's
Chipview.bat.

------- start of forwarded message -------
...
From: Steven Edwards <steven_ed4153 at yahoo.com>
Sender: wine-patches-admin at winehq.com
To: wine-patches at winehq.com
Subject: PATCH: Fix build wcmd on windows
Date: Fri, 19 Jul 2002 22:34:27 -0700 (PDT)

Changelog: Fix building on windows

cvs diff -u directory.c 
Index: directory.c
===================================================================
RCS file: /home/wine/wine/programs/wcmd/directory.c,v
retrieving revision 1.11
diff -u -r1.11 directory.c
--- directory.c	5 Jul 2002 22:47:56 -0000	1.11
+++ directory.c	20 Jul 2002 05:32:26 -0000
@@ -29,7 +29,7 @@
 
 int WCMD_dir_sort (const void *a, const void *b);
 void WCMD_list_directory (char *path, int level);
-char * WCMD_filesize64 (__uint64 free);
+char * WCMD_filesize64 (unsigned __int64 free);
 char * WCMD_strrev (char *buff);
 
 
@@ -43,7 +43,7 @@
 
 int file_total, dir_total, line_count, page_mode, recurse, wide, bare,
     max_width;
-__uint64 byte_total;
+unsigned __int64 byte_total;
 
 /*****************************************************************************
  * WCMD_directory
@@ -363,10 +363,10 @@
  * FIXME: There must be a better algorithm!
  */
 
-char * WCMD_filesize64 (__uint64 n) {
+char * WCMD_filesize64 (unsigned __int64 n) {
 
-__uint64 q;
-uint r, i;
+unsigned __int64 q;
+unsigned int r, i;
 char *p;
 static char buff[32];

__________________________________________________
...
------- end of forwarded message -------

-- 
Uwe Bonnes                bon at elektron.ikp.physik.tu-darmstadt.de

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------



More information about the wine-patches mailing list