g a cross toolchain than installing cygwin for me.
I will find or make a cross toolchain.
Thanks.
Eric Zhao
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
On Sun, Aug 10, 2008 at 7:16 PM, Samuel Thibault
<[EMAIL PROTECTED]> wrote:
> eric zhao, le Sun 10 Aug 2008 09:14:10 +0800, a écrit :
>> After install cygwin under wine,
>> I try to run "tar -xvf linux-2.6.25.7.tar.bz2".
>> It spent about 20 minutes.
>>
l
site_list_type::operator == (site_list_type const &rhs) const
{
+#ifndef __WINE__
return stricmp (key.c_str(), rhs.key.c_str()) == 0;
+#else
+ return strcasecmp (key.c_str(), rhs.key.c_str()) == 0;
+#endif
}
bool
site_list_type::operator < (site_list_type const &rhs) const
{
+#ifndef __WINE__
return stricmp (key.c_str(), rhs.key.c_str()) < 0;
+#else
+ return strcasecmp (key.c_str(), rhs.key.c_str()) < 0;
+#endif
}
static void
@@ -294,7 +304,7 @@
if (f)
{
int len;
- while (len = f->read (mirror_url, 999))
+ while ((len = f->read (mirror_url, 999)))
{
mirror_url[len] = '\0';
cached_mirrors += mirror_url;
@@ -359,10 +369,17 @@
{
/* Don't default to certain machines ever since they suffer
from bandwidth limitations. */
+#ifndef __WINE__
if (strnicmp (site, NOSAVE1, NOSAVE1_LEN) == 0
|| strnicmp (site, NOSAVE2, NOSAVE2_LEN) == 0
|| strnicmp (site, NOSAVE3, NOSAVE3_LEN) == 0)
return;
+#else //__WINE__
+ if (strncasecmp (site, NOSAVE1, NOSAVE1_LEN) == 0
+ || strncasecmp (site, NOSAVE2, NOSAVE2_LEN) == 0
+ || strncasecmp (site, NOSAVE3, NOSAVE3_LEN) == 0)
+ return;
+#endif //__WINE__
SiteList result;
merge (all_site_list.begin(), all_site_list.end(),
&tempSite, &tempSite + 1,
@@ -450,7 +467,7 @@
CreateThread (NULL, 0, do_download_site_info_thread, context, 0, &threadID);
}
-static BOOL CALLBACK
+static INT_PTR CALLBACK
drop_proc (HWND h, UINT message, WPARAM wParam, LPARAM lParam)
{
switch (message)
diff -dur setup-2.573.2.2-orig/String++.cc setup-2.573.2.2/String++.cc
--- setup-2.573.2.2-orig/String++.cc2006-04-18 01:01:52.0 +0800
+++ setup-2.573.2.2/String++.cc 2008-08-09 17:20:58.0 +0800
@@ -11,6 +11,7 @@
*/
#include "String++.h"
+#include
#include
#include
diff -dur setup-2.573.2.2-orig/UserSetting.cc setup-2.573.2.2/UserSetting.cc
--- setup-2.573.2.2-orig/UserSetting.cc 2004-10-26 01:06:07.0 +0800
+++ setup-2.573.2.2/UserSetting.cc 2008-08-09 16:54:05.0 +0800
@@ -23,7 +23,9 @@
#include
#include
#include
-#include
+#ifndef __WINE__
+# include
+#endif
#include
#include "LogSingleton.h"
diff -dur setup-2.573.2.2-orig/UserSettings.cc setup-2.573.2.2/UserSettings.cc
--- setup-2.573.2.2-orig/UserSettings.cc2006-04-16 05:21:25.0
+0800
+++ setup-2.573.2.2/UserSettings.cc 2008-08-09 16:54:05.0 +0800
@@ -23,7 +23,9 @@
#include
#include
#include
-#include
+#ifndef __WINE__
+# include
+#endif
#include
#include "LogSingleton.h"
diff -dur setup-2.573.2.2-orig/win32.cc setup-2.573.2.2/win32.cc
--- setup-2.573.2.2-orig/win32.cc 2007-02-28 08:55:04.0 +0800
+++ setup-2.573.2.2/win32.cc2008-08-09 17:21:37.0 +0800
@@ -19,6 +19,7 @@
#endif
#include "win32.h"
+#include
#include "LogFile.h"
After patch, run:
CC="winegcc" \
CXX="wineg++" \
LIBS="-lcrtdll -lwininet" \
WINDRES=wrc \
./configure --prefix=/somewhere --enable-shared=no &&
make &&
wine setup.exe.so
Sorry for my english!
Eric Zhao
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
3 matches
Mail list logo